* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
}

.card {
    border: 1px solid #ddd;
    padding: 24px;
    margin-bottom: 24px;
    background: #fff;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 13px;
    color: #666;
}

.segment-buttons {
    display: inline-flex;
    border: 1px solid #000;
}

.segment-btn {
    padding: 8px 18px;
    background: #fff;
    border: none;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.segment-btn + .segment-btn {
    border-left: 1px solid #000;
}

.segment-btn.active {
    background: #000;
    color: #fff;
}

.current-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.current-row .btn {
    flex-shrink: 0;
}

.current-value {
    font-size: 32px;
    font-weight: 600;
    letter-spacing: 0.04em;
    word-break: break-all;
}

.current-meta {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #666;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 13px;
    color: #333;
}

.form-group input,
.form-group select {
    border: 1px solid #ccc;
    padding: 10px 12px;
    font-size: 14px;
    height: 40px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    line-height: 1.5;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
}

.form-group select option {
    padding: 8px 12px;
}

.timezone-combobox {
    position: relative;
}

.timezone-combobox input {
    width: 100%;
    padding-right: 40px;
}

.timezone-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23000' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 10px 6px;
}

.timezone-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    border: 1px solid #ddd;
    background: #fff;
    max-height: 220px;
    overflow-y: auto;
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    z-index: 20;
}

.timezone-option {
    width: 100%;
    text-align: left;
    padding: 8px 12px;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f3f3f3;
}

.timezone-option:last-child {
    border-bottom: none;
}

.timezone-option:hover {
    background: #f5f5f5;
}

.timezone-empty {
    padding: 10px 12px;
    font-size: 13px;
    color: #999;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #999;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.04);
}

.form-group.actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.form-group.actions-wide {
    grid-column: 1 / -1;
}

.form-group.actions .btn {
    min-width: 110px;
}

.feedback {
    min-height: 18px;
    font-size: 13px;
    color: #b42323;
    margin-bottom: 12px;
}

.result-panel {
    border: 1px solid #eee;
    padding: 16px;
    background: #f9f9f9;
}

.result-label {
    font-size: 13px;
    color: #999;
    margin-bottom: 6px;
}

.result-value {
    font-size: 16px;
    font-weight: 500;
    word-break: break-all;
}

.result-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.result-number {
    flex-shrink: 0;
}

.result-unit {
    font-size: 14px;
    color: #999;
}

.result-meta {
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

@media (max-width: 640px) {
    .card {
        padding: 20px;
    }

    .form-group.actions {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group.actions .btn {
        width: 100%;
    }

    .current-value {
        font-size: 26px;
    }
}
