/* ============================================================
   CSS Custom Properties — iOS-inspired design tokens
   ============================================================ */
:root {
    --bg:              #f2f2f7;
    --card-bg:         #ffffff;
    --primary:         #007aff;
    --primary-dark:    #0062cc;
    --primary-light:   #e8f1ff;
    --success:         #34c759;
    --success-light:   #e8f8ed;
    --danger:          #ff3b30;
    --danger-light:    #fff0ef;
    --warning:         #ff9500;
    --warning-light:   #fff4e0;
    --memo-color:      #007aff;
    --memo-light:      #e8f1ff;
    --text:            #1c1c1e;
    --text-secondary:  #6e6e73;
    --text-tertiary:   #aeaeb2;
    --border:          #e5e5ea;
    --border-focus:    #007aff;
    --radius:          12px;
    --radius-sm:       8px;
    --radius-lg:       16px;
    --shadow:          0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md:       0 4px 16px rgba(0, 0, 0, 0.12);
    --font:            -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue',
                       Arial, sans-serif;
    --transition:      0.18s ease;
    --header-h:        56px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}

/* ============================================================
   Layout
   ============================================================ */
.main-content {
    max-width: 640px;
    margin: 0 auto;
    padding: calc(var(--header-h) + 16px) 16px 100px;
}

/* ============================================================
   App Header
   ============================================================ */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 640px;
    margin: 0 auto;
    height: 100%;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.app-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    flex: 1;
    text-align: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-user {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    white-space: nowrap;
}

.header-back {
    flex-shrink: 0;
}

/* ============================================================
   Icon Button
   ============================================================ */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: var(--primary);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--transition);
    text-decoration: none;
}
.btn-icon:hover {
    background: var(--primary-light);
    text-decoration: none;
}
.btn-icon svg {
    display: block;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: none;
    transition: opacity var(--transition), background var(--transition), transform var(--transition);
    white-space: nowrap;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.btn:active {
    transform: scale(0.97);
}
.btn:hover {
    text-decoration: none;
    opacity: 0.88;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background: var(--primary-dark);
    opacity: 1;
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-secondary:hover {
    background: var(--primary-light);
    opacity: 1;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    opacity: 0.85;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    border-radius: var(--radius);
    margin-top: 8px;
}

.btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: 6px;
}

/* ============================================================
   Cards
   ============================================================ */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 20px;
}

/* ============================================================
   Alerts
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
}
.alert-error {
    background: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(255, 59, 48, 0.2);
}
.alert-success {
    background: var(--success-light);
    color: #1a7a3a;
    border: 1px solid rgba(52, 199, 89, 0.25);
}

/* ============================================================
   Forms
   ============================================================ */
.form-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 8px 16px;
    margin-bottom: 16px;
}

.form-group {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.form-section .form-group:last-child {
    border-bottom: none;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    letter-spacing: 0.1px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.form-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
}

.form-hint {
    display: block;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 5px;
}

.form-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-family: var(--font);
    font-size: 16px; /* prevent iOS zoom */
    color: var(--text);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    -webkit-appearance: none;
    appearance: none;
}
.form-input::placeholder {
    color: var(--text-tertiary);
}
.form-input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    background: #fff;
}

.form-select {
    display: block;
    padding: 9px 32px 9px 12px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6e73' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition);
}
.form-select:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 160px;
    line-height: 1.6;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-bottom: 16px;
}
.form-actions .btn {
    flex: 1;
}

/* ============================================================
   Status Radio Group
   ============================================================ */
.status-radio-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 6px 0 2px;
}

.status-radio {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    flex: 1;
    min-width: 90px;
}

.status-radio input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.status-radio-label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-secondary);
    transition: all var(--transition);
    cursor: pointer;
    text-align: center;
}

.status-radio.status-memo input:checked + .status-radio-label {
    background: var(--memo-light);
    border-color: var(--memo-color);
    color: var(--memo-color);
}
.status-radio.status-completed input:checked + .status-radio-label {
    background: var(--success-light);
    border-color: var(--success);
    color: #1a7a3a;
}
.status-radio.status-incomplete input:checked + .status-radio-label {
    background: var(--warning-light);
    border-color: var(--warning);
    color: #a05a00;
}

.status-radio-label:hover {
    border-color: var(--text-secondary);
}

/* ============================================================
   Tag Input
   ============================================================ */
.tag-input-wrap {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 44px;
}
.tag-input-wrap:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.15);
    background: #fff;
}

.tag-chips-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 4px;
}
.tag-chips-preview:empty {
    margin-bottom: 0;
}

.tag-input-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    padding: 3px 8px 3px 10px;
    border-radius: 20px;
    line-height: 1.4;
}
.tag-input-chip button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    padding: 0;
    display: flex;
    align-items: center;
    font-size: 15px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity var(--transition);
}
.tag-input-chip button:hover {
    opacity: 1;
}

.tag-text-input {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 4px 6px;
    font-size: 15px;
    width: 100%;
}
.tag-text-input:focus {
    border: none;
    box-shadow: none;
    background: transparent;
}

.char-count {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-tertiary);
    letter-spacing: 0;
    text-transform: none;
    float: right;
}
.char-count.char-count-warn {
    color: var(--warning);
}

/* ============================================================
   Filter / Search Bar
   ============================================================ */
.filter-form {
    margin-bottom: 12px;
}

.search-wrap {
    position: relative;
    margin-bottom: 10px;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    pointer-events: none;
}
.search-input {
    padding-left: 38px;
    padding-right: 36px;
    background: var(--card-bg);
    border-color: var(--border);
    border-radius: var(--radius);
}
.search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-tertiary);
    color: #fff;
    text-decoration: none;
    transition: background var(--transition);
}
.search-clear:hover {
    background: var(--text-secondary);
    text-decoration: none;
}

.filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-select {
    flex: 1;
    min-width: 130px;
    font-size: 14px;
    padding-top: 8px;
    padding-bottom: 8px;
    background-color: var(--card-bg);
}
.filter-date {
    flex: 1;
    min-width: 130px;
    font-size: 14px;
    padding: 8px 12px;
    background: var(--card-bg);
}
.filter-date-sep {
    color: var(--text-tertiary);
    font-size: 14px;
    flex-shrink: 0;
    align-self: center;
}
.filter-clear-btn {
    padding: 8px 14px;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   Tag Filter — Text autocomplete + Active Chips
   ============================================================ */
.tag-filter-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.active-tag-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-autocomplete-wrap {
    position: relative;
    width: 100%;
}

.tag-filter-input {
    width: 100%;
    font-size: 14px;
    box-sizing: border-box;
}

.tag-suggestions {
    position: fixed;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    padding: 4px 0;
}

.tag-suggestion-item {
    padding: 10px 14px;
    font-size: 14px;
    color: var(--text-primary);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
    outline: none;
}
.tag-suggestion-item:hover,
.tag-suggestion-item:focus {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.filter-active-chip {
    background: var(--primary);
    color: #fff;
}
.filter-active-chip button {
    color: #fff;
}

/* ============================================================
   Tag Group Presets
   ============================================================ */
.preset-section {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preset-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.preset-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 6px 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    background: var(--card-bg);
    border: 1.5px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    -webkit-tap-highlight-color: transparent;
}
.preset-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.preset-delete-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
    font-size: 15px;
    line-height: 1;
    padding: 0 2px;
    opacity: 0.6;
    transition: opacity var(--transition);
}
.preset-delete-btn:hover { opacity: 1; }

.preset-save-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.preset-save-form {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.preset-name-input {
    flex: 1 1 150px;
    min-width: 0;
    font-size: 13px;
    padding: 5px 10px;
}

/* ============================================================
   Memo Summary
   ============================================================ */
.memo-summary {
    margin-bottom: 12px;
}
.memo-count {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ============================================================
   Memo List & Cards
   ============================================================ */
.memo-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.memo-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-left: 4px solid transparent;
    transition: box-shadow var(--transition), transform var(--transition);
}
.memo-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}
.memo-card.status-memo {
    border-left-color: var(--memo-color);
}
.memo-card.status-completed {
    border-left-color: var(--success);
}
.memo-card.status-incomplete {
    border-left-color: var(--warning);
}

.memo-card-body {
    padding: 14px 16px 10px;
    flex: 1;
}

.memo-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.memo-date {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    flex-shrink: 0;
}

.memo-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 5px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.memo-preview {
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 10px;
    word-break: break-word;
}

.memo-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.tag-chip {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 20px;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    line-height: 1.5;
}
.tag-chip:hover {
    background: var(--primary);
    color: #fff;
    text-decoration: none;
}

.memo-card-actions {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--border);
    justify-content: flex-end;
}

.delete-form {
    margin: 0;
}

/* ============================================================
   Status Badges
   ============================================================ */
.status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 3px 9px;
    border-radius: 20px;
    line-height: 1.4;
    text-transform: uppercase;
}
.status-badge.status-memo {
    background: var(--memo-light);
    color: var(--memo-color);
}
.status-badge.status-completed {
    background: var(--success-light);
    color: #1a7a3a;
}
.status-badge.status-incomplete {
    background: var(--warning-light);
    color: #a05a00;
}

/* ============================================================
   Empty State
   ============================================================ */
.empty-state {
    text-align: center;
    padding: 60px 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.empty-state-icon {
    font-size: 52px;
    margin-bottom: 16px;
    filter: grayscale(0.2);
}
.empty-state-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.empty-state-text {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ============================================================
   Scroll Sentinel / Infinite Scroll Loader
   ============================================================ */
.scroll-sentinel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 0 8px;
    min-height: 60px;
    grid-column: 1 / -1; /* span both grid columns */
}

.scroll-spinner {
    display: none;
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.scroll-sentinel.loading .scroll-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================================
   Floating Action Button
   ============================================================ */
.fab {
    position: fixed;
    bottom: 28px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.4);
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    z-index: 90;
    -webkit-tap-highlight-color: transparent;
}
.fab:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.5);
    transform: scale(1.06);
    text-decoration: none;
    color: #fff;
}
.fab:active {
    transform: scale(0.96);
}
.fab svg {
    display: block;
}

/* ============================================================
   Memo Detail Modal (bottom sheet)
   ============================================================ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    animation: modal-fade-in 0.2s ease;
}
.modal-overlay[hidden] {
    display: none;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.modal-sheet {
    background: var(--card-bg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: sheet-slide-up 0.25s cubic-bezier(0.32, 0.72, 0, 1);
}

@keyframes sheet-slide-up {
    from { transform: translateY(60px); opacity: 0.6; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: var(--border);
    margin: 10px auto 0;
    flex-shrink: 0;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 10px;
    flex-shrink: 0;
    border-bottom: 1px solid var(--border);
}

.modal-close-btn {
    color: var(--text-secondary);
}
.modal-close-btn:hover {
    background: var(--bg);
    color: var(--text);
}

.modal-body {
    padding: 16px 20px;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.modal-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
    line-height: 1.3;
    margin-bottom: 12px;
}
.modal-title:empty {
    display: none;
}

.modal-content {
    font-size: 15px;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
    margin-bottom: 16px;
}

.modal-tags {
    margin-top: 4px;
    margin-bottom: 4px;
}

.modal-actions {
    padding: 12px 20px 20px;
    flex-shrink: 0;
    border-top: 1px solid var(--border);
}
.modal-actions .btn-block {
    margin-top: 0;
}

/* Card body is clickable */
.memo-card-clickable {
    cursor: pointer;
}
.memo-card-clickable:hover .memo-title {
    color: var(--primary);
}

/* ============================================================
   Auth Pages
   ============================================================ */
.auth-page {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    padding: 40px 16px 60px;
}

.auth-container {
    width: 100%;
    max-width: 380px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 28px;
}
.auth-logo-icon {
    font-size: 56px;
    margin-bottom: 10px;
    display: block;
}
.auth-logo-name {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.auth-logo-tagline {
    font-size: 15px;
    color: var(--text-secondary);
}

.auth-card {
    padding: 24px 20px;
}
.auth-card .form-group {
    padding: 8px 0;
    border-bottom: none;
}
.auth-card .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: 6px;
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-secondary);
}
.auth-switch a {
    font-weight: 600;
}

/* ============================================================
   Memo Form
   ============================================================ */
.memo-form {
    /* spacing handled by form-section */
}
.memo-form .form-section .form-group {
    padding: 12px 0;
}

/* ============================================================
   Responsive tweaks (larger screens)
   ============================================================ */
@media (min-width: 480px) {
    .filter-row {
        flex-wrap: nowrap;
    }
}

@media (min-width: 640px) {
    .main-content {
        padding-top: calc(var(--header-h) + 24px);
        padding-left: 24px;
        padding-right: 24px;
    }
    .fab {
        right: calc(50% - 320px + 24px);
    }
}

/* ============================================================
   Utility
   ============================================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}
