@font-face{font-family:LocalSans;src:local('Segoe UI')}*{box-sizing:border-box}html{font-size:16px}body{margin:0;font-family:LocalSans,Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#292c37;background:#fafbfc;line-height:1.5}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{border:0;background:none;color:inherit}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7e80ea;outline-offset:3px}input,select,textarea{border:1px solid #dcdfe7;border-radius:9px;background:white;padding:10px 12px;min-width:0;color:#292c37}textarea{resize:vertical}input::placeholder,textarea::placeholder{color:#7a7f8e}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app{display:flex;min-height:100vh}.sidebar{width:258px;flex-shrink:0;padding:34px 22px 20px;border-right:1px solid #e9ebf1;background:#f1f3f8;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{display:flex;align-items:center;gap:11px;font-size:26px;font-weight:700;letter-spacing:-1px;text-decoration:none;color:#292c37;margin:0 10px 48px}.brand-dot{color:#6664d9;margin-left:-10px}.sidebar-label,.eyebrow{font-size:.75rem;letter-spacing:1.8px;font-weight:700;color:#747988;margin:0 10px 13px}.eyebrow{margin:0 0 12px;color:#777b8b}.views{display:grid;gap:6px}.view{display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border-radius:9px;color:#565c6d;font-size:.9375rem;text-align:left}.view>span:first-child{display:flex;align-items:center;gap:12px}.nav-icon{font-size:20px;line-height:1;width:20px;text-align:center}.view.active{background:white;color:#4f4bbe;box-shadow:0 2px 7px #292c3705;font-weight:600}.count{font-size:.8125rem;background:#e7e9f1;border-radius:5px;padding:1px 7px;min-width:25px;text-align:center}.view.active .count{background:#eeedff;color:#5b54c8}.category-heading{display:flex;align-items:center;justify-content:space-between;margin-top:35px}.category-heading .sidebar-label{margin-bottom:0}.icon-button{width:34px;height:34px;display:grid;place-items:center;border-radius:8px;font-size:24px;color:#717587}.icon-button:hover{background:#e5e7f0}.categories{display:grid;gap:3px;margin-top:9px}.category{display:flex;gap:12px;align-items:center;text-align:left;padding:10px 12px;border-radius:8px;font-size:.9375rem;overflow-wrap:anywhere}.category.selected{background:#e4e6f0;font-weight:600}.color-dot{height:9px;width:9px;border-radius:3px;flex-shrink:0;background:var(--category-color,#a3a7b4)}.category-form{padding:8px}.category-form>input{width:100%;font-size:.875rem}.category-form>div{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.875rem}.category-form input[type=color]{padding:2px;width:36px;height:31px}.small-button{padding:7px 12px;background:#ecebf9;border-radius:7px;color:#4e48b0;font-size:.875rem}.sidebar-bottom{margin-top:auto;padding-top:36px}.utility{display:flex;align-items:center;gap:11px;color:#656c7b;padding:10px 12px;font-size:.875rem;text-align:left}.utility:hover{color:#514ac2}.profile{border-top:1px solid #dfe2eb;margin:23px 6px 0;padding-top:19px;display:flex;align-items:center;gap:10px;font-size:.875rem;font-weight:600}.avatar{background:#dfdff1;border-radius:10px;width:34px;height:34px;display:grid;place-items:center;color:#5d579e}.profile small{display:block;font-size:.75rem;color:#747b89;font-weight:400}main{width:100%;max-width:1190px;margin:auto;padding:31px clamp(24px,5.6vw,92px);align-self:flex-start}.topline{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:.875rem;color:#797e8c;margin-bottom:53px}.topline>span:first-child{text-transform:capitalize}.connection{font-size:.8125rem;color:#687d74}.connection.error{color:#b44543}.page-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:31px;gap:12px}h1{font-size:clamp(30px,3vw,44px);letter-spacing:-1.6px;font-weight:650;line-height:1.15;margin:0 0 13px}h1>span{color:#7770dc}.muted{color:#737987;margin:0;font-size:.9375rem}.header-mark{font-size:33px;color:#6e66ca;background:#eeecfa;width:61px;height:61px;border-radius:20px;display:grid;place-items:center;transform:rotate(-8deg);flex-shrink:0}.composer{background:white;border:1px solid #dedeea;border-radius:13px;box-shadow:0 4px 18px #292c3704;overflow:hidden}.composer-main{display:flex;gap:8px;align-items:center;padding:15px}.composer-main>input{flex:1;border:0;background:none;padding:9px 5px;min-width:0}.composer-main .plus{color:#9294a7;font-size:26px;padding:0 8px}.primary{background:#6159c8;color:white;border:1px solid #6159c8;border-radius:8px;padding:10px 16px;font-weight:600;font-size:.875rem;display:inline-flex;align-items:center;justify-content:center;gap:15px;white-space:nowrap}.primary:hover{background:#514ab3}.composer-options{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:11px 16px;border-top:1px solid #eff0f5;background:#fdfdfe}.composer-options select{border:0;background:#f1f2f7;font-size:.8125rem;padding:6px 9px;border-radius:6px;max-width:190px}.date-label{display:flex;align-items:center;gap:7px;margin-left:auto;font-size:.8125rem;color:#6d7283}.date-label input{border:0;font-size:.8125rem;background:#f1f2f7;padding:4px 7px;border-radius:6px;width:145px}.list-heading{display:flex;justify-content:space-between;gap:12px;font-size:.75rem;color:#7a7f8d;margin:31px 2px 14px}.list-heading>span:first-child{letter-spacing:1.3px;font-weight:600}.list-heading>span:last-child{font-size:.8125rem}.task{display:flex;align-items:flex-start;gap:14px;padding:20px 19px;background:white;border:1px solid #e4e6ed;border-radius:11px;margin-bottom:10px;transition:border-color .15s,box-shadow .15s;position:relative}.task:hover{border-color:#c9c6e4;box-shadow:0 3px 12px #292c3705}.task.urgent{border-left:3px solid #ce6a66;padding-left:17px}.check{height:21px;width:21px;flex-shrink:0;border:1.5px solid #cfd2de;border-radius:50%;margin-top:4px;display:grid;place-items:center;color:white;font-size:13px;padding:0}.check:hover{border-color:#7b72cf;background:#f0eefa}.done .check{background:#8f91a8;border-color:#8f91a8}.task-body{flex:1;min-width:0;text-align:left;padding:0}.task-title{font-weight:550;line-height:1.5;font-size:1rem;overflow-wrap:anywhere}.done .task-title{text-decoration:line-through;color:#888d9b}.task-notes{font-size:.875rem;color:#7c8290;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0 0}.task-meta{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:9px;font-size:.75rem;color:#7e8391}.tag{display:inline-flex;align-items:center;gap:6px;padding:2px 7px;border-radius:4px;background:#f1f2f6;color:#616778;max-width:100%;overflow-wrap:anywhere}.tag .color-dot{height:6px;width:6px;border-radius:2px}.urgency-label.urgent{color:#b5534f;background:#fbefed}.urgency-label.important{color:#9f6b21;background:#fcf4e5}.date-tag{display:flex;gap:5px;align-items:center}.task-edit{align-self:center;font-size:19px;color:#999bad;padding:3px 8px;border-radius:6px}.task-edit:hover{background:#f1f0fa;color:#6058be}.empty{padding:53px 20px 48px;text-align:center;border:1px dashed #dfe1ec;border-radius:12px;background:#ffffff80}.empty-mark{width:48px;height:48px;border-radius:16px;background:#edebfa;color:#756cc4;display:grid;place-items:center;font-size:24px;margin:0 auto 17px}.empty h2{font-size:1.125rem;font-weight:600;margin:0 0 7px;letter-spacing:-.3px}.empty p{color:#787e8c;font-size:.9375rem;margin:0 auto;max-width:400px}.main-footer{display:flex;justify-content:space-between;gap:20px;color:#858a98;font-size:.75rem;margin-top:35px}.loading{min-height:100vh;display:grid;place-items:center;color:#777b89}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 15% 10%,#e9e7fa,transparent 60%),#f6f7fb;padding:24px}.login-card{width:100%;max-width:440px}.login-card img{margin-bottom:27px}.login-card h1{font-size:40px;line-height:1.2;margin-bottom:35px}.login-card label{display:block;font-size:.875rem;margin-bottom:8px}.login-card input{width:100%;padding:13px}.login-card .primary{width:100%;padding:13px;margin:5px 0 22px;justify-content:space-between}.login-card .muted{text-align:center;font-size:.8125rem}.error{color:#b14643;font-size:.875rem;min-height:21px;margin:10px 0}.load-error{display:flex;justify-content:space-between;gap:15px;background:#fff0ed;padding:15px;border-radius:9px;margin-bottom:15px;color:#a34843;font-size:.875rem}dialog{border:1px solid #e3e3ee;border-radius:17px;padding:28px;color:#292c37;box-shadow:0 20px 80px #26273e24;width:calc(100% - 32px);max-width:540px;max-height:90vh;overflow-y:auto}dialog::backdrop{background:#23273865;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.dialog-heading .eyebrow{margin:0}.editor>label,.edit-grid label{display:block;font-size:.875rem;font-weight:600;margin:18px 0 7px}.editor>input,.editor>textarea,.edit-grid select{width:100%}.edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field-help{font-size:.8125rem;color:#777d8c;line-height:1.6}.editor-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;border-top:1px solid #eeeef4;margin-top:23px;padding-top:17px;font-size:.8125rem;color:#777d8c}.text-danger{color:#b55551;font-size:.875rem;padding:7px}.notification-dialog h2{font-size:1.5rem;letter-spacing:-.5px}.notification-dialog>p{color:#747b89;font-size:.9375rem}.notification-sample{display:flex;align-items:center;gap:13px;background:#f1f2f8;border:1px solid #e7e8f0;border-radius:12px;padding:18px;margin:24px 0}.notification-sample strong{font-size:.875rem}.notification-sample p{margin:3px 0 0;font-size:.875rem}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#2e3041;color:white;border-radius:10px;padding:13px 19px;display:flex;align-items:center;gap:20px;box-shadow:0 5px 25px #292c3726;z-index:20;max-width:calc(100% - 32px);font-size:.875rem}.toast button{color:#c6c0ff;font-weight:600}.toast span{overflow-wrap:anywhere}@media(min-width:1500px){main{max-width:1160px;margin-left:30px}}@media(max-width:1000px){.sidebar{width:219px;padding:28px 15px}main{padding:29px 28px}.header-mark{display:none}.composer-options .date-label{margin-left:0}.topline{margin-bottom:39px}.main-footer{flex-direction:column;gap:7px}}@media(max-width:700px){.app{display:block}.sidebar{width:100%;height:auto;position:static;border-right:0;border-bottom:1px solid #e3e5ee;padding:18px 18px 13px;display:block}.brand{font-size:23px;margin:0 0 18px}.brand img{width:28px;height:28px}.sidebar>.sidebar-label,.category-heading,.profile{display:none}.views{display:flex;gap:3px;overflow-x:auto;padding-bottom:5px}.view{font-size:.8125rem;gap:6px;padding:9px 10px;white-space:nowrap;justify-content:center;width:auto;flex-shrink:0}.view .nav-icon{display:none}.count{font-size:.75rem;min-width:20px;padding:0 4px}.categories{display:flex;overflow:auto;gap:4px;margin-top:11px;padding-bottom:3px}.category{white-space:nowrap;font-size:.8125rem;padding:6px 9px;gap:6px}.sidebar-bottom{padding:0;position:absolute;top:18px;right:12px;display:flex;gap:2px}.utility{padding:6px 9px;font-size:18px}.utility span{display:none}.category-form{padding:10px 0}.category-form input{max-width:350px}main{padding:24px 20px}.topline{font-size:.8125rem;margin-bottom:28px}.page-header{margin-bottom:24px}.page-header h1{font-size:32px;letter-spacing:-1px}.eyebrow{font-size:.6875rem;letter-spacing:1.5px}.composer-main{padding:10px;gap:3px}.composer-main .plus{padding:0 4px}.composer-main input{font-size:.9375rem}.add-button{padding:9px 12px}.add-button span{display:none}.composer-options{padding:10px;gap:7px}.composer-options select{font-size:.75rem;padding:6px}.date-label{font-size:.75rem}.date-label input{font-size:.75rem;width:135px}.list-heading{margin-top:26px}.task{padding:16px 13px;gap:11px}.task.urgent{padding-left:11px}.task-title{font-size:.9375rem}.task-edit{padding:2px}.main-footer{margin-top:27px;font-size:.75rem}.empty{padding:38px 15px}dialog{padding:22px}.login-card h1{font-size:35px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Theme and ordering controls */
:root{color-scheme:light}
.sort-control{display:flex;align-items:center;gap:8px;font-size:.8125rem;letter-spacing:0;font-weight:400}
.sort-control select{font-size:.8125rem;padding:6px 9px;max-width:210px;border-radius:7px;background:transparent}
#theme-symbol{display:inline!important;font-size:18px;line-height:1}
:root[data-theme=dark]{color-scheme:dark}
[data-theme=dark] body{color:#e8e9f0;background:#111318}
[data-theme=dark] .sidebar{background:#191c24;border-color:#2b303d}
[data-theme=dark] .brand{color:#f0f1f7}
[data-theme=dark] .brand-dot,[data-theme=dark] h1>span{color:#aaa2ff}
[data-theme=dark] .sidebar-label,[data-theme=dark] .eyebrow{color:#9b9fb5}
[data-theme=dark] .view{color:#b8bed0}
[data-theme=dark] .view.active{background:#2c2a43;color:#d2ccff;box-shadow:none}
[data-theme=dark] .count{background:#2c303e;color:#bec4d5}
[data-theme=dark] .view.active .count{background:#413b62;color:#e0d9ff}
[data-theme=dark] .category{color:#bbc1d1}
[data-theme=dark] .category.selected{background:#2c3040;color:#eef0f8}
[data-theme=dark] .icon-button{color:#b6bad0}
[data-theme=dark] .icon-button:hover{background:#323647}
[data-theme=dark] .utility{color:#b7bdd0}
[data-theme=dark] .utility:hover{color:#d4ceff}
[data-theme=dark] .profile{border-color:#303543}
[data-theme=dark] .profile small{color:#9bA4b8}
[data-theme=dark] .avatar{background:#35304e;color:#d0c7ff}
[data-theme=dark] .topline,[data-theme=dark] .muted,[data-theme=dark] .list-heading,[data-theme=dark] .main-footer{color:#a0a8bb}
[data-theme=dark] .connection{color:#9cceb7}
[data-theme=dark] .connection.error,[data-theme=dark] .error{color:#ffa49d}
[data-theme=dark] .header-mark{color:#b4a9ff;background:#2b2742}
[data-theme=dark] input,[data-theme=dark] select,[data-theme=dark] textarea{background:#20242f;color:#e8eaf3;border-color:#3a4051}
[data-theme=dark] input::placeholder,[data-theme=dark] textarea::placeholder{color:#9aa3b7}
[data-theme=dark] .composer{background:#1d202a;border-color:#3b3e54;box-shadow:0 5px 20px #0002}
[data-theme=dark] .composer-main>input{background:transparent;border:0}
[data-theme=dark] .composer-main .plus{color:#a2a9c0}
[data-theme=dark] .composer-options{background:#1a1d26;border-color:#303544}
[data-theme=dark] .composer-options select,[data-theme=dark] .date-label input{background:#2b2e3d;color:#c6cbdb}
[data-theme=dark] .date-label{color:#a8b0c4}
[data-theme=dark] .primary{background:#7569e3;border-color:#7569e3;color:white}
[data-theme=dark] .primary:hover{background:#8679f0}
[data-theme=dark] .small-button{background:#373052;color:#d6ccff}
[data-theme=dark] .task{background:#1d212b;border-color:#323747;box-shadow:none}
[data-theme=dark] .task:hover{border-color:#615784;background:#222633}
[data-theme=dark] .task.urgent{border-left-color:#e88880}
[data-theme=dark] .check{border-color:#657087}
[data-theme=dark] .check:hover{border-color:#b0a5f6;background:#37304d}
[data-theme=dark] .done .check{background:#60687e;border-color:#60687e}
[data-theme=dark] .done .task-title{color:#a1a9bb}
[data-theme=dark] .task-notes,[data-theme=dark] .task-meta{color:#a6afc2}
[data-theme=dark] .tag{background:#303545;color:#c0c7d8}
[data-theme=dark] .urgency-label.urgent{background:#482c30;color:#ffb3a9}
[data-theme=dark] .urgency-label.important{background:#413622;color:#f0cc84}
[data-theme=dark] .task-edit{color:#a3abc1}
[data-theme=dark] .task-edit:hover{background:#39324f;color:#dfd5ff}
[data-theme=dark] .empty{background:#181b23;border-color:#363c4e}
[data-theme=dark] .empty-mark{background:#302b45;color:#bcaeff}
[data-theme=dark] .empty p,[data-theme=dark] .loading{color:#a7afc3}
[data-theme=dark] .login{background:radial-gradient(ellipse at 15% 10%,#282340,transparent 60%),#13151d}
[data-theme=dark] dialog{background:#1d212b;color:#e8e9f0;border-color:#41475a;box-shadow:0 20px 80px #0008}
[data-theme=dark] dialog::backdrop{background:#06080eb0}
[data-theme=dark] .field-help,[data-theme=dark] .notification-dialog>p{color:#adb5c9}
[data-theme=dark] .editor-footer{color:#adb5c9;border-color:#373d4e}
[data-theme=dark] .text-danger{color:#f5a098}
[data-theme=dark] .notification-sample{background:#292e3d;border-color:#3b4256}
[data-theme=dark] .load-error{background:#41282d;color:#ffc1bb}
[data-theme=dark] .toast{background:#363148;border:1px solid #605575;color:#f6f0ff;box-shadow:0 5px 25px #0005}
[data-theme=dark] .toast button{color:#d8c9ff}
@media(max-width:700px){.sort-control{font-size:.75rem;gap:5px}.sort-control select{font-size:.75rem;max-width:172px;padding:6px}.list-heading{align-items:center}#theme-toggle{min-width:32px}}
@media(max-width:390px){.sort-control{flex-direction:column;align-items:flex-end;gap:2px}.add-button{padding:9px}.sidebar-bottom{gap:0}.utility{padding:6px 7px}}

/* Keep the workspace centred inside the area beside the sidebar, including wide screens. */
main{min-width:0;flex:1;width:100%;max-width:1190px;margin:0 auto}
@media(min-width:1500px){main{max-width:1190px;margin:0 auto}}
@media(max-width:700px){
  .sidebar{position:relative}
  .brand{max-width:calc(100% - 130px)}
  .views{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;overflow:visible;padding-bottom:0}
  .view{width:100%;min-width:0;min-height:55px;flex-direction:column;padding:7px 3px;gap:4px;font-size:.8125rem}
  .view>span:first-child{gap:0;justify-content:center}
  .categories{padding-bottom:5px}
  .category{min-height:40px}
  .sidebar-bottom{top:17px;right:12px}
  .utility{min-width:38px;min-height:40px;justify-content:center;padding:7px}
  main{padding:24px 18px}
  .topline{margin-bottom:25px}
  .page-header h1{font-size:clamp(27px,7vw,32px)}
  .composer-options{gap:9px}
  .composer-options select{min-height:36px;max-width:100%}
  .composer-options .date-label{width:100%;display:flex;justify-content:space-between}
  .date-label input{width:auto;min-height:36px;flex:1;max-width:210px}
  .task-edit{min-height:40px;min-width:30px}
  .sort-control select{min-height:38px}
  .editor-footer{align-items:flex-start}
}
@media(max-width:380px){
  main{padding:22px 14px}
  .sidebar{padding-left:12px;padding-right:12px}
  .view{font-size:.75rem}
  .composer-main .plus{display:none}
  .add-button{padding:10px;font-size:.8125rem}
  .edit-grid{grid-template-columns:1fr;gap:0}
}

/* Search stays compact; date filters expand only when needed. */
.search-panel{margin-top:24px}
.search-row{display:flex;align-items:stretch;gap:9px}
.search-field{display:flex;align-items:center;gap:9px;border:1px solid #dcdfe7;border-radius:9px;background:#fff;padding:0 12px;flex:1;min-width:0;color:#757e92}
.search-field>span:first-child{font-size:25px;line-height:1}
.search-field input{background:transparent;border:0;border-radius:7px;flex:1;width:100%;font-size:.875rem;min-height:43px;padding:10px 0}
.search-field:focus-within{outline:2px solid #8b7de5;outline-offset:2px}
.search-field input:focus-visible{outline:none}
.filter-button{padding:9px 14px;border:1px solid #dcdfe7;border-radius:9px;font-size:.875rem;background:#f3f3f9}
.filter-button[aria-expanded=true]{border-color:#8778d2;color:#6051b4}
.date-filters{margin-top:12px;display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:.8125rem;color:#747c8f}
.date-filters label{display:flex;align-items:center;gap:7px}
.date-filters input{padding:6px 8px;font-size:.8125rem;min-height:36px}
.search-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.8125rem;color:#727a8b;padding-top:11px}
.search-summary button{color:#6153b4;text-decoration:underline;text-underline-offset:3px;padding:5px}
.pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:23px;font-size:.8125rem;color:#747c8f}
.pagination span{text-align:center}
.category-heading .small-button{white-space:nowrap;font-size:.8125rem;padding:5px 9px}
.category-hint{font-size:.6875rem;color:#8b91a0;margin:3px 10px 0}
.categories{scrollbar-width:none}.categories::-webkit-scrollbar{display:none}
[data-theme=dark] .search-field{background:#1c202a;border-color:#373e51;color:#a8b2ca}
[data-theme=dark] .search-field input{background:transparent;border:0}
[data-theme=dark] .filter-button{background:#292c3a;color:#ccd0e2;border-color:#3c4256}
[data-theme=dark] .filter-button[aria-expanded=true]{border-color:#a08ae4;color:#d0bfff}
[data-theme=dark] .date-filters,[data-theme=dark] .search-summary,[data-theme=dark] .pagination{color:#acb5ca}
[data-theme=dark] .search-summary button{color:#c0b2ff}
@media(max-width:700px){
  .category-heading{display:flex;margin-top:14px}
  .category-heading .sidebar-label{font-size:.6875rem;margin-left:3px}
  .category-heading .small-button{min-height:34px}
  .categories{margin-top:3px}
  .search-panel{margin-top:18px}
  .search-field{padding:0 9px;gap:6px}
  .search-field input{font-size:.8125rem}
  .filter-button{font-size:.8125rem;padding:8px 10px}
  .date-filters>span{width:100%}
  .date-filters{gap:8px}
  .date-filters label{flex:1;min-width:0}
  .date-filters input{min-width:0;width:100%;padding:6px 4px}
  .pagination{gap:6px;font-size:.75rem}
  .pagination button{font-size:.75rem;padding:8px}
}

/* Multiple categories behave as reusable labels. */
.composer{overflow:visible}.composer-options{border-radius:0 0 13px 13px}
.category-picker{position:relative;min-width:118px;font-size:.8125rem}
.category-picker summary{cursor:pointer;list-style:none;padding:6px 10px;border-radius:6px;background:#f1f2f7;color:#616778;min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.category-picker summary::after{content:'⌄';font-size:15px}.category-picker summary::-webkit-details-marker{display:none}
.category-picker[open] summary{outline:2px solid #8b7de5}
.category-options{position:absolute;top:calc(100% + 8px);left:0;z-index:10;padding:8px;width:235px;max-height:260px;overflow:auto;background:#fff;border:1px solid #dcdfe7;border-radius:10px;box-shadow:0 8px 28px #20223825}
.category-choice{display:flex;align-items:center;gap:9px;padding:9px 8px;border-radius:6px;font-size:.875rem;cursor:pointer;overflow-wrap:anywhere;min-height:39px}
.category-choice:hover{background:#f1effa}.category-choice input{padding:0;margin:0;width:16px;height:16px;flex-shrink:0;accent-color:#7569e3}
.category-choice .color-dot{flex-shrink:0}
.field-label{font-size:.875rem;font-weight:600;margin:18px 0 8px}
.field-label .field-help{font-weight:400;margin-left:7px}
.edit-categories{display:flex;gap:7px;flex-wrap:wrap;max-height:200px;overflow:auto}
.edit-categories .category-choice{border:1px solid #dddfea;background:#f6f6fb;padding:7px 10px;font-size:.8125rem}
.editor>select{width:100%}
[data-theme=dark] .category-picker summary{background:#2b2e3d;color:#c6cbdb}
[data-theme=dark] .category-options{background:#252936;border-color:#4c5269;box-shadow:0 8px 28px #0007}
[data-theme=dark] .category-choice:hover{background:#39344f}
[data-theme=dark] .edit-categories .category-choice{border-color:#434a60;background:#292e3e;color:#d0d6e7}
@media(max-width:700px){.category-picker summary{min-height:36px}.category-options{width:min(260px,calc(100vw - 70px))}.category-choice{min-height:43px}}
