:root {
    --accessory-navy: #081e2c;
    --accessory-navy-soft: #103849;
    --accessory-green: #20b878;
    --accessory-line: #dfe8e9;
    --accessory-canvas: #f6f9f9;
}

.accessory-body {
    min-height: 100vh;
    margin: 0;
    color: #152633;
    background:
        radial-gradient(circle at 8% 4%, rgba(32,184,120,.075), transparent 23rem),
        linear-gradient(180deg, #f9fbfb 0, var(--accessory-canvas) 100%);
}

.accessory-shell {
    min-height: 100vh;
    display: grid;
    grid-template-rows: 68px minmax(0, 1fr) 29px;
}

.accessory-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 0 clamp(18px, 4vw, 64px);
    color: #f4fbfa;
    background:
        radial-gradient(circle at 13% -140%, rgba(46,218,145,.55), transparent 38%),
        linear-gradient(112deg, #071b2a 0%, #0a2b3a 58%, #0b3440 100%);
    border-bottom: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 10px 32px rgba(7,27,42,.12);
}

.accessory-brand {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.accessory-brand:hover { color: #fff; }

.billing-profile-card { margin: 24px 0; overflow: hidden; border: 1px solid #dbe6e7; border-radius: 18px; background: #fff; box-shadow: 0 14px 40px rgba(15,49,61,.07); }
.billing-profile-card > header { min-height: 92px; display: grid; grid-template-columns: 48px minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 17px 22px; border-bottom: 1px solid #e6eded; background: linear-gradient(135deg,#fbfefd,#f4faf7); }.billing-profile-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; color: #0a8b54; background: #def5e8; font-size: 21px; }.billing-profile-card > header span { color: #0b9560; font-size: 9px; font-weight: 800; letter-spacing: .09em; }.billing-profile-card > header h2 { margin: 2px 0; color: #112c3c; font-size: 20px; }.billing-profile-card > header p { margin: 0; color: #6a7c86; font-size: 10px; }.billing-profile-card > header > b { padding: 7px 10px; border-radius: 999px; font-size: 9px; }.billing-profile-card > header > b.complete { color: #087a49; background: #e1f6ea; }.billing-profile-card > header > b.pending { color: #9a6512; background: #fff2db; }
.billing-profile-form { padding: 21px 22px 18px; }.billing-customer-type { margin: 0 0 20px; padding: 0; border: 0; }.billing-customer-type legend { margin-bottom: 8px; color: #314a57; font-size: 10px; font-weight: 800; }.billing-customer-type { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }.billing-customer-type legend { grid-column: 1/-1; }.billing-customer-type label { cursor: pointer; }.billing-customer-type input { position: absolute; opacity: 0; pointer-events: none; }.billing-customer-type label > span { min-height: 61px; display: grid; grid-template-columns: 35px minmax(0,1fr); align-items: center; column-gap: 10px; padding: 10px 13px; border: 1px solid #dce6e7; border-radius: 12px; transition: border-color .15s,background .15s,box-shadow .15s; }.billing-customer-type label i { width: 33px; height: 33px; grid-row: 1/3; display: grid; place-items: center; border-radius: 9px; color: #657984; background: #f0f4f5; font-style: normal; }.billing-customer-type label strong,.billing-customer-type label small { display: block; }.billing-customer-type label strong { color: #1c3441; font-size: 11px; }.billing-customer-type label small { margin-top: 2px; color: #74848d; font-size: 8px; }.billing-customer-type input:checked + span { border-color: #43bd83; background: #effaf4; box-shadow: 0 0 0 2px rgba(25,169,101,.08); }.billing-customer-type input:checked + span i { color: #087f4c; background: #d8f3e4; }
.billing-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }.billing-form-grid label { min-width: 0; }.billing-form-grid label.wide { grid-column: 1/-1; }.billing-form-grid label > span { display: block; margin: 0 0 5px; color: #314956; font-size: 9px; font-weight: 750; }.billing-form-grid label > span b { color: #d4515b; }.billing-form-grid input,.billing-form-grid select { width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d8e3e5; border-radius: 9px; outline: 0; color: #18313e; background: #fff; font-size: 10px; }.billing-form-grid input:focus,.billing-form-grid select:focus { border-color: #44b981; box-shadow: 0 0 0 3px rgba(25,169,101,.09); }.billing-form-grid label > small { display: block; min-height: 2px; margin-top: 3px; color: #cb3f4b; font-size: 8px; }.billing-profile-form > footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e7eeee; }.billing-profile-form > footer p { margin: 0; color: #70818b; font-size: 9px; }.billing-profile-form > footer button { min-height: 40px; padding: 0 17px; border: 0; border-radius: 9px; color: #fff; background: linear-gradient(135deg,#19ad6c,#0b8a54); box-shadow: 0 8px 18px rgba(11,138,84,.18); font-size: 10px; font-weight: 800; }
@media (max-width: 700px) { .billing-profile-card > header { grid-template-columns: 43px minmax(0,1fr); }.billing-profile-card > header > b { grid-column: 1/-1; justify-self: start; }.billing-customer-type,.billing-form-grid { grid-template-columns: 1fr; }.billing-form-grid label.wide { grid-column: auto; }.billing-profile-form > footer { align-items: stretch; flex-direction: column; }.billing-profile-form > footer button { width: 100%; } }

.accessory-brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    overflow: hidden;
    border-radius: 12px;
    background: linear-gradient(145deg, #27ce87, #129f65);
    box-shadow: 0 8px 20px rgba(20,167,102,.3), inset 0 1px rgba(255,255,255,.28);
}

.accessory-brand-mark img { width: 31px; height: 31px; object-fit: contain; }
.accessory-brand-copy strong { display: block; font-size: 17px; line-height: 1; letter-spacing: .09em; }
.accessory-brand-copy small { display: block; margin-top: 4px; color: #a9c2ca; font-size: 9px; letter-spacing: .035em; }

.accessory-header-actions,
.accessory-session { display: flex; align-items: center; gap: 9px; }

.accessory-workspace-link,
.accessory-login-link,
.accessory-register-link,
.accessory-logout button {
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 10px;
    color: #eaf6f5;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.13);
    background: rgba(255,255,255,.055);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.accessory-workspace-link:hover,
.accessory-login-link:hover,
.accessory-logout button:hover {
    color: #fff;
    border-color: rgba(255,255,255,.28);
    background: rgba(255,255,255,.11);
    transform: translateY(-1px);
}

.accessory-register-link { color: #062b20; border-color: #42d79a; background: #42d79a; }
.accessory-register-link:hover { color: #06251c; background: #64e1ad; }
.accessory-logout { margin: 0; }
.accessory-logout button { cursor: pointer; }

.accessory-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 240px;
    color: #dcebea;
    font-size: 11px;
    text-decoration: none;
}

.accessory-user:hover { color: #fff; }
.accessory-user-dot { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: #063324; background: #b8f0d6; font-size: 11px; font-weight: 800; }
.accessory-user-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.accessory-main {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: clamp(22px, 4vw, 52px) clamp(18px, 4vw, 64px);
}

.accessory-main--workspace-form { width: 100%; padding: 0; }
.accessory-main--workspace-form .agenda-form-page { min-height: auto; padding: clamp(22px, 4vw, 44px) 18px; background: transparent; }

.accessory-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 0 clamp(18px, 4vw, 64px);
    color: #849397;
    border-top: 1px solid rgba(74,101,108,.12);
    background: rgba(255,255,255,.45);
    font-size: 9px;
    letter-spacing: .015em;
}

.accessory-footer nav { display: flex; align-items: center; gap: 10px; }
.accessory-footer a { color: #61767c; text-decoration: none; }
.accessory-footer a:hover { color: #118257; }

/* Compact contact agenda */
.contacts-page { width: min(100%, 1180px); margin: 0 auto; }
.contacts-back { display: inline-flex; margin-bottom: 22px; color: #64787e; font-size: 11px; text-decoration: none; }
.contacts-back:hover { color: #118257; }
.contacts-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.contacts-hero > div > span { color: #159560; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.contacts-hero h1 { margin: 3px 0 5px; color: #102936; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.04em; }
.contacts-hero p { margin: 0; color: #6c7c82; font-size: 12px; }
.contacts-hero > strong { min-width: 86px; padding: 11px 15px; border: 1px solid #dce9e4; border-radius: 14px; color: #0b8153; background: #eff9f3; font-size: 20px; line-height: 1; text-align: center; }
.contacts-hero > strong small { display: block; margin-top: 5px; color: #74857f; font-size: 8px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contacts-sync { margin-bottom: 18px; overflow: hidden; border: 1px solid #dfe9e7; border-radius: 14px; background: rgba(255,255,255,.82); box-shadow: 0 8px 28px rgba(17,62,70,.045); }
.contacts-sync summary { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 11px 15px; cursor: pointer; list-style: none; }
.contacts-sync summary::-webkit-details-marker { display: none; }
.contacts-sync-icon { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; color: #087b50; background: #e2f6ea; font-weight: 800; }
.contacts-sync summary > span:nth-child(2) { min-width: 0; flex: 1; }
.contacts-sync summary strong,.contacts-sync summary small { display: block; }
.contacts-sync summary strong { color: #18323d; font-size: 12px; }
.contacts-sync summary small { margin-top: 2px; color: #7a8a8f; font-size: 9px; }
.contacts-sync-chevron { color: #73858a; font-size: 16px; transition: transform .18s; }
.contacts-sync[open] .contacts-sync-chevron { transform: rotate(180deg); }
.contacts-sync-detail { padding: 0 58px 14px; color: #687a80; font-size: 10px; line-height: 1.5; }
.contacts-sync-detail p { margin: 0 0 4px; }
.contacts-search { height: 42px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; margin-bottom: 18px; overflow: hidden; border: 1px solid #d8e4e5; border-radius: 12px; background: #fff; box-shadow: 0 5px 18px rgba(19,59,68,.035); }
.contacts-search > span { color: #779096; font-size: 19px; text-align: center; }
.contacts-search input { min-width: 0; height: 100%; padding: 0 6px; border: 0; outline: 0; color: #253b45; background: transparent; font-size: 11px; }
.contacts-search button { height: 32px; margin-right: 5px; padding: 0 15px; border: 0; border-radius: 9px; color: #fff; background: #0f9660; font-size: 10px; font-weight: 750; }
.contacts-list-heading { display: flex; align-items: center; justify-content: space-between; margin: 0 1px 10px; color: #62757b; font-size: 9px; }
.contacts-list-heading strong { color: #203741; font-size: 11px; }
.contact-mini-grid { display: grid; grid-template-columns: repeat(auto-fill,76px); gap: 10px; align-items: start; padding: 2px 0 18px; }
.contact-mini-card { position: relative; width: 76px; height: 76px; display: grid; grid-template-rows: 1fr 22px; place-items: center; overflow: hidden; border: 1px solid #dce6e5; border-radius: 13px; background: #fff; box-shadow: 0 3px 12px rgba(15,40,55,.055); transition: border-color .15s, box-shadow .15s, transform .15s; }
.contact-mini-card:hover { z-index: 2; border-color: #83caa3; box-shadow: 0 7px 18px rgba(15,89,55,.13); transform: translateY(-2px); }
.contact-mini-card.ignored { border-style: dashed; background: #f5f7f7; box-shadow: none; }
.contact-mini-card.ignored .contact-mini-avatar,.contact-mini-card.ignored > strong { opacity: .55; filter: grayscale(.7); }
.contact-mini-avatar { position: relative; align-self: end; width: 35px; height: 35px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; color: #087c50; background: linear-gradient(145deg,#e6f8ee,#cfefdc); }
.contact-mini-avatar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.contact-mini-avatar span { display: none; }
.contact-mini-card > strong { width: 100%; align-self: stretch; padding: 4px 5px 3px; overflow: hidden; border-top: 1px solid #edf2f1; color: #263b44; background: #fafcfc; font-size: 8px; line-height: 13px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.contact-mini-edit { position: absolute; z-index: 1; top: 4px; right: 4px; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid #d5e1dc; border-radius: 7px; color: #087b50; background: rgba(255,255,255,.97); }
.contact-mini-edit:hover { color: #fff; border-color: #11955f; background: #11955f; }
.contact-mini-edit svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact-mini-analysis { position: absolute; z-index: 2; top: 4px; left: 4px; margin: 0; }
.contact-mini-analysis button { width: 20px; height: 20px; display: grid; place-items: center; padding: 0; border: 1px solid #e2d9d9; border-radius: 7px; color: #a04750; background: rgba(255,255,255,.97); font: inherit; font-size: 11px; line-height: 1; cursor: pointer; }
.contact-mini-card.ignored .contact-mini-analysis button { color: #087b50; border-color: #a7d5bb; }
.contact-mini-analysis button:hover { color: #fff; border-color: #15965f; background: #15965f; }
.contact-mini-card > em { position: absolute; left: 5px; right: 5px; bottom: 23px; overflow: hidden; color: #9d3f48; font-size: 6px; font-style: normal; font-weight: 800; letter-spacing: .05em; text-align: center; text-transform: uppercase; white-space: nowrap; }
.contacts-pagination { min-height: 34px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 3px; color: #849297; font-size: 9px; }
.contacts-pagination a { width: max-content; padding: 7px 10px; border: 1px solid #d7e3e1; border-radius: 8px; color: #176d4e; background: #fff; text-decoration: none; }
.contacts-pagination a:last-child { justify-self: end; }
.contacts-pagination span { grid-column: 2; }

/* Contact profile */
.contact-profile-page { width: min(100%, 820px); margin: 0 auto; }
.contact-profile-back { display: inline-flex; margin-bottom: 20px; color: #64787e; font-size: 11px; text-decoration: none; }
.contact-profile-back:hover { color: #118257; }
.contact-profile-card { overflow: hidden; border: 1px solid #dce7e7; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 22px 65px rgba(12,45,57,.09); }
.contact-profile-header { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: 16px; padding: 24px 26px; color: #fff; background: radial-gradient(circle at 4% 0,rgba(42,211,141,.45),transparent 31%),linear-gradient(120deg,#092435,#0b3b42); }
.contact-profile-avatar { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; color: #d8f8e7; background: rgba(255,255,255,.1); }
.contact-profile-avatar svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; }
.contact-profile-title { min-width: 0; }
.contact-profile-title > span { color: #77e0af; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.contact-profile-title h1 { margin: 4px 0; overflow: hidden; color: #fff; font-size: clamp(19px,3vw,26px); letter-spacing: -.025em; text-overflow: ellipsis; white-space: nowrap; }
.contact-profile-title p { margin: 0; color: #b9cdd0; font-size: 10px; }
.contact-profile-phone { min-width: 150px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; background: rgba(255,255,255,.065); }
.contact-profile-phone small,.contact-profile-phone strong { display: block; }
.contact-profile-phone small { margin-bottom: 3px; color: #80dcb1; font-size: 7px; font-weight: 800; letter-spacing: .13em; }
.contact-profile-phone strong { color: #f0f8f7; font-size: 11px; }
.contact-profile-card form { padding: 27px 28px 25px; }
.contact-profile-validation:empty { display: none; }
.contact-profile-validation { margin-bottom: 16px; padding: 10px 12px; border-radius: 9px; color: #9d3038; background: #fff0f1; font-size: 10px; }
.contact-profile-validation ul { margin: 0; padding-left: 17px; }
.contact-profile-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.contact-profile-field { min-width: 0; }
.contact-profile-field > span:first-child { display: block; margin: 0 0 7px 2px; color: #31464f; font-size: 10px; font-weight: 750; }
.contact-profile-field input,.contact-profile-field textarea { width: 100%; padding: 11px 12px; border: 1px solid #d7e2e3; border-radius: 10px; outline: 0; color: #213943; background: #fbfdfd; font: inherit; font-size: 11px; transition: border-color .16s,box-shadow .16s,background .16s; }
.contact-profile-field input { height: 42px; }
.contact-profile-field textarea { min-height: 116px; resize: vertical; line-height: 1.55; }
.contact-profile-field input:focus,.contact-profile-field textarea:focus { border-color: #4bb985; background: #fff; box-shadow: 0 0 0 3px rgba(31,178,111,.11); }
.contact-profile-field input:disabled { color: #75868b; border-style: dashed; background: #f2f6f5; }
.contact-profile-field > small { min-height: 13px; display: block; margin: 5px 2px 0; color: #7c8c91; font-size: 8px; }
.contact-profile-field > small .field-validation-error { color: #b94049; }
.contact-profile-notes { grid-column: 1 / -1; }
.contact-profile-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 23px; padding-top: 19px; border-top: 1px solid #e5ecec; }
.contact-profile-actions a,.contact-profile-actions button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 0 16px; border-radius: 10px; font-size: 10px; font-weight: 700; text-decoration: none; }
.contact-profile-actions a { border: 1px solid #d8e2e2; color: #5d7076; background: #fff; }
.contact-profile-actions button { gap: 6px; border: 1px solid #11945f; color: #fff; background: linear-gradient(135deg,#19aa6b,#0c8755); box-shadow: 0 7px 18px rgba(14,143,88,.18); }
.contact-profile-actions a:hover { color: #173a35; border-color: #aebfbc; }
.contact-profile-actions button:hover { background: linear-gradient(135deg,#139961,#087b4d); }

/* Relevance profile */
.relevance-page { width: min(100%, 920px); margin: 0 auto; }
.relevance-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.relevance-hero > span { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 15px; color: #087b50; background: #dff6e9; font-size: 21px; }
.relevance-hero small { color: #159560; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.relevance-hero h1 { margin: 2px 0 3px; color: #102936; font-size: clamp(26px,4vw,38px); letter-spacing: -.035em; }
.relevance-hero p { margin: 0; color: #6c7c82; font-size: 11px; }
.relevance-form { padding: clamp(21px,4vw,34px); border: 1px solid #dce7e7; border-radius: 20px; background: rgba(255,255,255,.94); box-shadow: 0 20px 55px rgba(12,45,57,.075); }
.relevance-form--onboarding { margin-top: 18px; padding: 22px; border-radius: 16px; box-shadow: none; background: #f8fbfa; }
.relevance-question { display: flex; align-items: flex-start; gap: 11px; margin: 25px 0 12px; }
.relevance-question:first-of-type { margin-top: 0; }
.relevance-step { width: 25px; height: 25px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: #087b50; background: #dff6e9; font-size: 10px; font-weight: 800; }
.relevance-question h3 { margin: 0; color: #18323d; font-size: 14px; }
.relevance-question p { margin: 3px 0 0; color: #78898e; font-size: 9px; }
.relevance-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.relevance-chips label { margin: 0; cursor: pointer; }
.relevance-chips input { position: absolute; opacity: 0; pointer-events: none; }
.relevance-chips span { min-height: 34px; display: inline-flex; align-items: center; padding: 0 12px; border: 1px solid #d8e4e2; border-radius: 999px; color: #536970; background: #fff; font-size: 10px; font-weight: 650; transition: .15s ease; }
.relevance-chips input:checked + span { color: #076b46; border-color: #69c493; background: #e4f7ec; box-shadow: inset 0 0 0 1px rgba(22,151,92,.08); }
.relevance-chips input:focus-visible + span { outline: 3px solid rgba(26,170,106,.2); }
.relevance-custom { display: block; margin-top: 13px; }
.relevance-custom > span,.relevance-scope legend { display: block; margin: 0 0 7px 2px; color: #53676e; font-size: 9px; font-weight: 700; }
.relevance-custom input { width: 100%; height: 41px; padding: 0 12px; border: 1px solid #d7e2e3; border-radius: 10px; outline: 0; color: #213943; background: #fff; font-size: 10px; }
.relevance-custom input:focus { border-color: #4bb985; box-shadow: 0 0 0 3px rgba(31,178,111,.11); }
.relevance-scope { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin: 27px 0 0; padding: 0; border: 0; }
.relevance-scope legend { grid-column: 1 / -1; }
.relevance-scope label { display: flex; align-items: flex-start; gap: 9px; min-height: 72px; margin: 0; padding: 13px; border: 1px solid #dce6e5; border-radius: 12px; background: #fff; cursor: pointer; }
.relevance-scope input { margin-top: 3px; accent-color: #11945f; }
.relevance-scope strong,.relevance-scope small { display: block; }
.relevance-scope strong { color: #233c46; font-size: 10px; }
.relevance-scope small { margin-top: 4px; color: #75868b; font-size: 8px; line-height: 1.4; }
.relevance-form footer { display: flex; justify-content: flex-end; align-items: center; gap: 9px; margin-top: 25px; padding-top: 18px; border-top: 1px solid #e4eceb; }
.relevance-form footer a,.relevance-form footer button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; padding: 0 17px; border-radius: 10px; font-size: 10px; font-weight: 750; text-decoration: none; }
.relevance-form footer a { color: #5e7278; border: 1px solid #d8e2e2; background: #fff; }
.relevance-form footer button { border: 1px solid #11945f; color: #fff; background: linear-gradient(135deg,#19aa6b,#0c8755); }
.relevance-success,.relevance-errors { margin: 0 0 14px; padding: 11px 13px; border-radius: 10px; font-size: 10px; }
.relevance-success { color: #087048; background: #e6f7ed; }
.relevance-errors { color: #9d3038; background: #fff0f1; }
.relevance-errors:empty { display: none; }

/* Settings hub */
.settings-layout { width: min(100%, 1260px); display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 28px; margin: 0 auto; align-items: start; }
.settings-menu { position: sticky; top: 84px; overflow: hidden; border: 1px solid #dce7e5; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 16px 42px rgba(10,43,54,.065); }
.settings-menu a { color: #52676e; text-decoration: none; transition: background .15s,color .15s; }
.settings-menu-home { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 18px 16px 15px; border-bottom: 1px solid #e5eceb; }
.settings-menu-home > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; color: #087b50; background: #e0f6e9; }
.settings-menu-home strong { color: #17313c; font-size: 13px; }
.settings-menu-home small { width: 100%; color: #849196; font-size: 8px; }
.settings-menu nav { display: grid; gap: 3px; padding: 9px; }
.settings-menu nav a { min-height: 51px; display: grid; grid-template-columns: 29px minmax(0,1fr); align-items: center; gap: 8px; padding: 7px 9px; border-radius: 11px; }
.settings-menu nav a > span { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: #50666e; background: #f2f6f5; font-size: 11px; font-weight: 750; }
.settings-menu nav strong,.settings-menu nav small { display: block; }
.settings-menu nav strong { color: #29414a; font-size: 10px; }
.settings-menu nav small { margin-top: 2px; color: #849297; font-size: 8px; }
.settings-menu a:hover,.settings-menu a.active { color: #087b50; background: #edf9f2; }
.settings-menu a.active strong { color: #087b50; }
.settings-content { min-width: 0; }
.settings-back { display: inline-flex; margin-bottom: 20px; color: #64787e; font-size: 10px; text-decoration: none; }
.settings-hero { display: flex; align-items: center; gap: 15px; margin-bottom: 22px; }
.settings-hero > span { width: 49px; height: 49px; display: grid; place-items: center; border-radius: 15px; color: #087b50; background: #dff6e9; font-size: 20px; }
.settings-hero small { color: #159560; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.settings-hero h1 { margin: 2px 0 3px; color: #102936; font-size: clamp(27px,4vw,39px); letter-spacing: -.04em; }
.settings-hero p { margin: 0; color: #6c7c82; font-size: 11px; }
.settings-overview-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.settings-overview-grid > a { min-height: 85px; display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 16px; border: 1px solid #dce7e5; border-radius: 15px; color: inherit; background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(10,43,54,.04); text-decoration: none; transition: transform .15s,border-color .15s,box-shadow .15s; }
.settings-overview-grid > a:hover { transform: translateY(-1px); border-color: #9dd4b7; box-shadow: 0 12px 30px rgba(10,43,54,.075); }
.settings-overview-grid > a > span { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 12px; color: #087b50; background: #e4f7ec; font-size: 15px; font-weight: 750; }
.settings-overview-grid strong,.settings-overview-grid small { display: block; }
.settings-overview-grid strong { color: #1c3540; font-size: 11px; }
.settings-overview-grid small { margin-top: 4px; color: #74868c; font-size: 9px; }
.settings-overview-grid b { color: #749087; font-size: 13px; }
.settings-appearance { margin-top: 18px; padding: 22px; scroll-margin-top: 90px; border: 1px solid #dce7e5; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 14px 38px rgba(10,43,54,.055); }
.settings-appearance > header { display: flex; align-items: center; gap: 12px; margin-bottom: 17px; }
.settings-appearance > header > span { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; color: #087b50; background: #e4f7ec; font-weight: 800; }
.settings-appearance h2 { margin: 0; color: #18323d; font-size: 16px; }
.settings-appearance p { margin: 3px 0 0; color: #74868c; font-size: 9px; }
.font-scale-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.font-scale-options label { margin: 0; cursor: pointer; }
.font-scale-options input { position: absolute; opacity: 0; pointer-events: none; }
.font-scale-options label > span { min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px; border: 1px solid #dce6e4; border-radius: 13px; color: #62757b; background: #fbfdfc; text-align: center; transition: .15s; }
.font-scale-options label b { color: #193640; }
.font-scale-options label strong { margin-top: 6px; color: #29414a; font-size: 10px; }
.font-scale-options label small { margin-top: 3px; color: #849297; font-size: 8px; }
.font-scale-options input:checked + span { border-color: #54bb86; background: #ebf9f1; box-shadow: inset 0 0 0 1px rgba(16,150,94,.1); }
.font-scale-options input:focus-visible + span { outline: 3px solid rgba(26,170,106,.2); }
.font-scale-options button { grid-column: 1 / -1; justify-self: end; min-height: 39px; padding: 0 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg,#19aa6b,#0c8755); font-size: 10px; font-weight: 750; }

@media (max-width: 760px) {
    .accessory-shell { grid-template-rows: 61px minmax(0, 1fr) 27px; }
    .accessory-header { gap: 10px; padding-inline: 13px; }
    .accessory-brand-mark { width: 35px; height: 35px; }
    .accessory-brand-copy small,
    .accessory-user-name,
    .accessory-workspace-link,
    .accessory-footer-signature { display: none; }
    .accessory-register-link,
    .accessory-login-link,
    .accessory-logout button { min-height: 33px; padding-inline: 10px; }
    .accessory-main { padding: 22px 14px 30px; }
    .accessory-footer { gap: 8px; padding-inline: 10px; }
    .contacts-hero { align-items: flex-start; }.contacts-hero > strong { min-width: 72px; }
    .contacts-sync-detail { padding-left: 15px; padding-right: 15px; }
    .contact-mini-grid { grid-template-columns: repeat(auto-fill,72px); gap: 8px; }
    .contact-mini-card { width: 72px; height: 72px; }
    .contact-profile-header { grid-template-columns: 48px minmax(0,1fr); padding: 20px; }
    .contact-profile-avatar { width: 48px; height: 48px; border-radius: 15px; }
    .contact-profile-phone { grid-column: 1 / -1; min-width: 0; }
    .contact-profile-card form { padding: 21px 18px; }
    .contact-profile-grid { grid-template-columns: 1fr; gap: 14px; }
    .contact-profile-notes { grid-column: auto; }
    .relevance-scope { grid-template-columns: 1fr; }
    .relevance-form { padding: 19px 15px; }
    .settings-layout { grid-template-columns: 1fr; gap: 17px; }
    .settings-menu { position: static; }
    .settings-menu nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .settings-overview-grid { grid-template-columns: 1fr; }
    .font-scale-options { grid-template-columns: 1fr; }
    .font-scale-options label > span { min-height: 68px; }
}

@media (max-width: 410px) {
    .accessory-brand-copy { display: none; }
    .accessory-user-dot { display: none; }
}
