:root{--sbg:#0a0a12;--bl1:#5470ff99;--bl2:#9a6bff77;--bl3:#3be3c755;--a1:#3a4fe0;--a2:#6a43d6;--link:#d0d8ff;--field:#151521;--panel:#222230}
:root[data-theme=wine]{--bg:#12090d;--sbg:#12090d;--a1:#a3244a;--a2:#b33a2e;--c1:#e16d8f;--c2:#bd77d9;--c3:#ffbd8d;--bl1:#c8285588;--bl2:#ff8c5a55;--bl3:#8228aa77}
:root[data-theme=sage]{--bg:#07110e;--sbg:#07110e;--a1:#1f7a62;--a2:#2e5e8c;--c1:#76baa6;--c2:#93bddb;--c3:#c7e3a1;--bl1:#32b48c77;--bl2:#aad27844;--bl3:#2878b466}
:root[data-theme=mono]{--bg:#0b0b0d;--sbg:#0b0b0d;--a1:#353541;--a2:#555564;--c1:#bfc4dc;--c2:#d4cfe0;--c3:#e5e5ee;--bl1:#aaa8c044;--bl2:#6e6e8244;--bl3:#dcdceb22}
:root[data-theme=pearl]{color-scheme:light;--bg:#eceef6;--sbg:#eceef6;--ink:#17171f;--muted:#424653;--faint:#505666;--c1:#3445b0;--c2:#6745a3;--c3:#126553;--link:#3445a3;--field:#fbfbff;--panel:#f6f6fc;--bl1:#aebcff66;--bl2:#eccbdf55;--bl3:#b2e8df55}
.screen{background:var(--sbg)}.b1{background:radial-gradient(circle,var(--bl1),transparent 66%)}.b2{background:radial-gradient(circle,var(--bl2),transparent 66%)}.b3{background:radial-gradient(circle,var(--bl3),transparent 66%)}
.cta,.plus,.plus:after{background:linear-gradient(120deg,var(--a1),var(--a2));color:white}
.text-btn,.local-line button,.loc .show,.saved-buttons button,.gap-card button{color:var(--link)}
.sheet{background:linear-gradient(150deg,var(--panel),var(--sbg))}.sheet-top{background:var(--panel)}
input:not([type=checkbox]):not([type=file]):not([type=range]),select,textarea{background:var(--field)}.search input:not([type=checkbox]){background:none}
.top-actions{display:flex;align-items:center;gap:8px}.avatar-top{overflow:hidden}.avatar-top svg{width:46px;height:46px;display:block}.avatar-top>span{display:block}
.profile-animal{width:88px;height:88px;border-radius:28px;overflow:hidden;margin:10px auto}.profile-animal svg{width:100%;height:100%;display:block}
.profile-name{display:block;font:400 23px var(--serif);text-align:center;margin:10px auto;max-width:100%;overflow-wrap:anywhere}.profile-name span{font:15px var(--sans);color:var(--muted)}.profile-meta{font-size:11px;text-align:center;color:var(--muted);line-height:1.5}
.modal-section{font-size:13px;font-weight:500;margin-top:22px;margin-bottom:9px}
.animal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.animal-grid button{aspect-ratio:1;border-radius:19px;overflow:hidden;outline-offset:3px;border:2px solid transparent}.animal-grid svg{width:100%;height:100%;display:block}.animal-grid button[aria-checked=true]{border-color:var(--c3);box-shadow:0 0 0 2px var(--sbg),0 0 0 4px var(--c3)}
.theme-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.theme-grid button{font-size:10px;text-align:center;color:var(--muted);min-width:0}.theme-grid button>span{display:block;aspect-ratio:3/4.5;border-radius:14px;border:2px solid transparent;margin-bottom:7px}.theme-grid button[aria-checked=true]>span{border-color:var(--ink)}
.menu-list{margin-top:20px;border:1px solid #ffffff20;border-radius:20px;padding:0 12px}.menu-list button{width:100%;display:flex;align-items:center;gap:12px;text-align:left;padding:14px 0;border-top:1px solid #ffffff18;font-size:14px}.menu-list button:first-child{border:0}.menu-list button span{flex:1}.menu-list small{display:block;font-size:11px;color:var(--muted);line-height:1.4;margin-top:4px}.menu-list b{font-size:25px;font-weight:400;color:var(--muted)}
.photo-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}.photo-tile{position:relative;border:1px solid #ffffff20;border-radius:13px;padding:6px;overflow:hidden}.photo-tile img{height:85px;width:100%;object-fit:contain}.photo-tile>span{font-size:10px;color:var(--muted)}.photo-tile select{font-size:10px;padding:5px;min-height:30px;margin-top:5px}.photo-tile button{position:absolute;right:4px;top:4px;width:24px;height:24px;background:#191922dd;color:white;border-radius:50%;font-size:18px}
.draft-line{display:flex;align-items:center;gap:8px;font-size:10px;color:var(--muted);margin-top:6px}.draft-line>span{flex:1}.draft-line button{font-size:10px}.editor-extra-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:14px}.editor-extra-actions button{font-size:12px}.danger{color:#ffb3b3}
.notice-list:empty{display:none}.notice-card{border-radius:17px;padding:12px;margin-bottom:10px}.notice-card strong{font-size:13px;font-weight:500}.notice-card p{font-size:12px;color:var(--muted);line-height:1.5;margin-top:5px}.notice-card>div{display:flex;gap:12px;margin-top:8px}.notice-card button{font-size:11px;color:var(--link);padding:5px 0}
.notice-banner{position:absolute;z-index:40;left:10px;right:10px;top:max(10px,env(safe-area-inset-top));display:flex;gap:10px;padding:12px;border-radius:19px;align-items:flex-start;background:var(--panel);transform:translateY(-150%);transition:transform .3s var(--ease);pointer-events:none}.notice-banner.on{transform:none;pointer-events:auto}.notice-banner>div:first-child{width:40px;height:40px;flex:none;border-radius:12px;overflow:hidden}.notice-banner svg{width:100%;height:100%}.notice-banner>div:nth-child(2){flex:1}.notice-banner strong{font-size:12px;font-weight:600}.notice-banner p{font-size:11px;color:var(--muted);line-height:1.5;margin-top:4px}.notice-banner>button{width:22px;height:24px;font-size:20px;flex:none}
.calendar-hint{display:block;font-size:11px;color:var(--muted);padding:10px 0 0;text-align:left}
.modal-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;margin:15px 0}.modal-tabs button{padding:10px 12px;font-size:12px;border:1px solid #ffffff25;border-radius:12px;white-space:nowrap}.modal-tabs button[aria-selected=true]{background:var(--ink);color:var(--sbg)}
.import-preview{display:grid;gap:10px;margin-top:15px}.import-row{padding:12px;border-radius:17px;border:1px solid #ffffff22}.import-row>label{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.4}.import-row input[type=checkbox]{width:18px;height:18px;accent-color:var(--c3);flex:none}.import-row .source{font-size:10px;color:var(--muted);margin-top:4px}.import-row .field{margin-top:8px}.import-row .duplicate{font-size:11px;color:var(--warn);line-height:1.4;margin-top:6px}
.job-card{padding:12px;border:1px solid #ffffff20;border-radius:15px;margin-top:10px}.job-card strong{font-size:12px;font-weight:500}.job-card p{font-size:11px;color:var(--muted);line-height:1.5;margin-top:5px;overflow-wrap:anywhere}.job-card button{font-size:11px;color:var(--link);padding-top:8px}
.look-preview{min-height:220px;max-height:350px;border-radius:22px;overflow:hidden;background:#ffffff08;margin-top:14px;display:grid;place-items:center}.look-preview img{max-height:340px;width:100%;object-fit:contain}.look-preview p{padding:25px;text-align:center;font-size:13px;color:var(--muted);line-height:1.6}.look-choices{max-height:220px;overflow-y:auto;border:1px solid #ffffff20;border-radius:15px;padding:8px;margin-top:10px}.look-choices .checkrow{min-height:42px}.look-choices .checkrow>span:last-child{flex:1}
#lookPreview:has(p){display:none}
.photo-input:has(#lookPhotoFile){min-height:90px}
[data-theme=pearl] .sheet-top,[data-theme=pearl] .form-footer,[data-theme=pearl] .notice-banner{background:var(--panel)}
[data-theme=pearl] .dock{background:#f8f9ffed}[data-theme=pearl] .dk,[data-theme=pearl] .dk.on{color:var(--ink)}
[data-theme=pearl] .glass{color:var(--ink)}[data-theme=pearl] .toast{background:#fafafff5;color:var(--ink)}
[data-theme=pearl] .close,[data-theme=pearl] .care-group .ghostbtn{background:#17171f0c}
[data-theme=pearl] select option{background:#fafaff;color:var(--ink)}
[data-theme=pearl] .choice input:checked+span{background:#c7d0ff;color:#17171f;border-color:#4656b8}
[data-theme=pearl] .menu-list,[data-theme=pearl] .menu-list button,[data-theme=pearl] .photo-tile,[data-theme=pearl] .import-row,[data-theme=pearl] .job-card,[data-theme=pearl] .look-choices,[data-theme=pearl] input:not([type=checkbox]),[data-theme=pearl] select,[data-theme=pearl] .search{border-color:#17171f25}
[data-theme=pearl] .state-pill{color:#126553}[data-theme=pearl] .state-pill.care,[data-theme=pearl] .warning-box,[data-theme=pearl] .duplicate{color:#7e4700}
[data-theme=pearl] .toast button,[data-theme=pearl] .notice-card button{color:#126553}[data-theme=pearl] .danger,[data-theme=pearl] .form-error{color:#a8293b}
[data-theme=pearl] .badge{background:#ffffffd9}[data-theme=pearl] .garment-image{background:#ffffff40}
[data-theme=pearl] .ring .bgc{stroke:#17171f20}[data-theme=pearl] .ring .fg{stroke:#485bae}
[data-theme=pearl] .swipehint{background:#ffffffd8}[data-theme=pearl] .step.done .nm{color:#343b50}
[data-theme=pearl] .intro{background:radial-gradient(at 50% 35%,#dbe0ff,#f3f4fa 75%);color:#17171f}
@media(max-width:360px){.theme-grid{gap:6px}.animal-grid{gap:8px}.profile-meta{font-size:10px}.photo-tile img{height:70px}.top-actions{gap:5px}.top-actions .ibtn{width:41px;height:41px}.avatar-top svg{width:41px;height:41px}}
