:root{--accent:#6f79a9;--accent-dark:#586493;--sidebar:#f7f7fe;--ink:#344255;--muted:#65738a;--line:#e0e5ef;--shadow:0 9px 28px #59658b0a}
body{color:var(--ink);background:radial-gradient(ellipse at 8% 15%,#e4e5fa 0%,transparent 44%),radial-gradient(ellipse at 92% 8%,#f8e6e0 0%,transparent 41%),radial-gradient(ellipse at 72% 92%,#e0f0e8 0%,transparent 48%),#eef1f8;background-attachment:fixed}
.shell{gap:15px;padding:15px;grid-template-columns:235px minmax(0,1fr)}
.sidebar{height:calc(100dvh - 30px);top:15px;border:1px solid #fff;border-radius:22px;background:#ffffff70;color:#43516a;backdrop-filter:blur(22px);box-shadow:0 10px 28px #58668a08}
.brand svg{color:#7985ac}.brand div span{color:#7b88a2}.role{color:#7b83a0}.nav{color:#5d6a83}.nav:hover{background:#ffffff90;color:#405477}.nav.active{background:#e3e6f8b0;color:#535d8c;box-shadow:inset 0 1px 0 #fff}.nav-label{color:#8a91aa}.nav-count{background:#dde2f6;color:#5e6894}.sidebar-footer{border-top-color:#dce2ed}.sidebar .btn.quiet{color:#63718b}.sidebar .btn.quiet:hover{background:#ffffffb0}.identity small{color:#7b88a0}.avatar{background:#e3e7f7;color:#64729b;border:1px solid #fff}
.workspace{background:#ffffff4a;border:1px solid #fff;border-radius:22px;box-shadow:0 12px 36px #69769308;min-height:calc(100vh - 30px);overflow:clip}
.topbar{background:#ffffff5e;border-bottom:1px solid #ffffffba;backdrop-filter:blur(22px);border-radius:22px 22px 0 0;padding-top:17px;padding-bottom:17px}
.date-label{color:#5e6c86}.date-label small{color:#8390a6}.eyebrow{color:#9395b2}.muted,.hint,small{color:#75829a}
.panel{background:#ffffffa8;border:1px solid #ffffff;border-radius:16px;box-shadow:0 6px 25px #6c76940a;backdrop-filter:blur(14px)}
.page-heading{margin-bottom:24px}h1{color:#3b4961}.page-heading .muted{color:#7a879d}
.lane{background:#e7e9f580;border-color:#ffffffaa;border-radius:16px}.lane:nth-child(2){background:#e0eee880}.lane:nth-child(3){background:#f5e9e180}.lane:nth-child(4){background:#e1eaf780}.lane>header>span{background:#ffffff8c;color:#818ca3}.lane>header h2{color:#5d6b83}
.book-card{background:#ffffffc9;border-color:#fff;border-radius:12px;box-shadow:0 4px 13px #65729a0a;backdrop-filter:blur(8px)}.book-card:hover{background:#fff;border-color:#bbc4e6;box-shadow:0 7px 18px #63709a13}.book-category{color:#8b95ae}.book-progress{background:#edf0f7}.book-progress>span{background:#b1bddd}.card-foot,.card-meta{color:#8994ab}.book-card h3{color:#54617c}
.btn{border-color:#d8dfed;background:#ffffffa8;color:#667392;border-radius:10px}.btn:hover{background:#fff;border-color:#bdc8e4}.btn.primary{background:#7c86b5;border-color:#7c86b5;box-shadow:0 4px 12px #6f7ba326}.btn.primary:hover{background:#6975a5}.btn.selected{background:#e1e6f7;border-color:#c4cceb;color:#65729a}.btn.quiet:hover{background:#eef0f9}.btn.danger-btn{background:#f9e9eaa8;border-color:#edcbd0;color:#a66675}
input,select,textarea{background:#ffffffca;border-color:#dce2ef;border-radius:10px;color:#4c5d77}input:focus,select:focus,textarea:focus{border-color:#b3bde1}input::placeholder,textarea::placeholder{color:#a1abc0}
.text-button{color:#657597;text-decoration-color:#c7d1e6}.text-button:hover{color:#53668d}.empty{background:#ffffff45;border-color:#d8dfed;color:#9aa5b9}
.task-card{background:#ffffffb8;border-color:#e5e9f3;border-radius:12px}.task-card.currently-working{background:#f1faf4be;border-left-color:#9ac6b0}
.book-summary{background:#ffffff8c;border-color:#fff;border-radius:13px}.book-summary b{color:#67758d}
.notification-bell{display:flex;align-items:center;gap:10px;min-height:49px;padding:11px 15px;background:linear-gradient(135deg,#eeefff,#f8e9f3);border:1px solid #fff;border-radius:15px;color:#727ca8;font-weight:700;font-size:.8rem;cursor:pointer;box-shadow:0 4px 15px #8a91b31c;margin-left:8px}
.notification-bell svg{width:25px;height:25px;stroke-width:1.8}
.notification-bell b{min-width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#d7dff2;color:#6b779e;font-size:.69rem}
.notification-bell.has-unread b{background:#d9a6bc;color:#fff}.notification-bell:hover{background:#fff;border-color:#cdd5ef}
.admin-workspace-label{margin-left:auto;color:#9b9fb6;font-size:.76rem}
.person-label{display:inline-flex;gap:5px;align-items:center;flex-wrap:wrap;vertical-align:baseline;font-size:inherit}
.role-badge{font-size:.56rem;letter-spacing:.025em;font-weight:700;display:inline-flex;padding:3px 6px;border-radius:5px;line-height:1.3;white-space:nowrap;border:1px solid #ffffffa6}
.role-pm{background:#e0e8fa;color:#7286b7}.role-writer{background:#deeee8;color:#689d8b}.role-admin{background:#ece3f8;color:#9a80b7}
.pill{font-size:.66rem;background:#edf0f8;color:#8896b1}.pill.offered{background:#f5ecd9;color:#b29b6f}.pill.accepted,.pill.working,.pill.approved{background:#e3f0e8;color:#7ba68e}.pill.submitted{background:#e6e8f8;color:#9299bf}.pill.changes,.pill.declined,.pill.danger,.pill.incomplete{background:#f6e5e9;color:#bb8796}.pill.priority-urgent{background:#f4dfe5;color:#b66f86;font-weight:800}.pill.priority-high{background:#f6e9d9;color:#b29466}.pill.priority-low{background:#e6edf7;color:#91a3c2}.pill.task-tag{background:#eae8f7;color:#9a91b8}
.task-file{border:1px solid #e1e6f2;padding:12px;border-radius:10px;margin:9px 0;background:#f8f9feaa;font-size:.8rem}.task-file p{margin:6px 0}.attachment-name{font-size:.75rem;color:#8e9cb5;margin:6px 0}.conversation-explainer{padding:11px 13px;border-radius:10px;background:#edf1fb99;color:#8392ae;font-size:.79rem;margin-bottom:14px}
.bubble{background:#edf0f8e0}.bubble.mine{background:#e2eee9df}.submission{background:#f5f6fcbb;border-color:#e4e8f2}.inbox-item.unread{background:#eef0fb}.metrics .metric{background:#ffffff9e;border-color:#fff;border-radius:15px}.metric>b{color:#7786a2}.metric>span{color:#99a3b9}
.writer-export-list{display:flex;gap:10px;flex-wrap:wrap}.client-handoff-note{font-size:.73rem;color:#8794aa;margin:13px 0 7px}.document-toolbar{display:flex;gap:13px;align-items:center;flex-wrap:wrap;padding-bottom:14px;font-size:.76rem}.document-toolbar .btn{margin-left:auto}.document-type{padding:8px 11px;background:#e1e9f9;color:#7b90bb;border-radius:8px;font-weight:800}.office-tabs{display:flex;gap:7px;flex-wrap:wrap;align-items:center;margin:0 0 12px}.office-engine{font-size:.7rem;color:#98a2b7;margin-right:12px}.viewer{border-color:#dce3ef;background:#f7f8fc}.viewer iframe{height:65vh;width:100%;background:white}.viewer img{max-height:65vh;object-fit:contain}.viewer video,.viewer audio{width:100%;max-height:65vh}.text-file{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.78rem}.preview-loading{display:grid;justify-items:center;padding:45px 20px;color:#939fb6;font-size:.8rem}.preview-spinner{width:24px;height:24px;border:3px solid #e0e5f2;border-top-color:#9daace;border-radius:50%;margin-bottom:10px}
dialog{background:#fdfdff;border-color:#fff;border-radius:19px}.dialog-head{background:#fbfbff}.auth{background:transparent}.auth-card{background:#ffffffa3;backdrop-filter:blur(22px);border-color:#fff;border-radius:23px;box-shadow:0 16px 50px #6f78931a}.auth-card .brand{color:#7282a4}.auth-card .brand svg{color:#98a8c8}
.toast{background:#fffffff0;border-color:#fff;border-left-color:#b9c8de;box-shadow:0 9px 26px #6d779c24;backdrop-filter:blur(20px)}.toast.priority{background:#fffafcf2;border-left-color:#e1b8ca}
thead th{background:#f3f5fb;color:#a2abc0}td,th{border-bottom-color:#e8ecf5}
@media(prefers-reduced-motion:no-preference){.preview-spinner{animation:preview-spin .8s linear infinite}.notification-bell.has-unread svg{animation:bell-wave .8s ease 1}@keyframes preview-spin{to{transform:rotate(360deg)}}@keyframes bell-wave{0%,100%{transform:rotate(0)}25%{transform:rotate(-12deg)}60%{transform:rotate(9deg)}}}
@media(max-width:1150px){.shell{grid-template-columns:205px minmax(0,1fr);padding:11px;gap:11px}.sidebar{top:11px;height:calc(100dvh - 22px)}}
@media(max-width:800px){.shell{grid-template-columns:1fr;padding:9px;gap:9px}.sidebar{height:auto;top:0;padding:13px;border-radius:17px}.workspace{border-radius:17px;min-height:60vh}.topbar{border-radius:17px 17px 0 0}.notification-bell{min-height:42px;padding:8px 11px;font-size:.71rem}.notification-bell svg{width:21px;height:21px}.notification-bell span{display:none}.person-label{font-size:.75rem}.role-badge{font-size:.54rem}.admin-workspace-label{display:none}.topbar>.notification-bell{margin-left:auto}}
.muted,.hint,small,.book-category,.card-meta,.card-foot,.task-dates{color:#687891}.role-pm{color:#526c9c}.role-writer{color:#4a7c68}.role-admin{color:#7d5d9d}.pill.priority-urgent{color:#98536c}.pill.approved,.pill.working,.pill.accepted{color:#537f67}.pill.changes,.pill.declined,.pill.danger,.pill.incomplete{color:#975c6a}.inbox-item p{color:#687891}
.contact-unread{margin-left:auto;font-size:.65rem;background:#dbaabd;color:white;border-radius:50%;min-width:19px;height:19px;display:grid;place-items:center}.contacts .person-label{font-size:.74rem}.contacts .person-label .role-badge{display:inline-flex}.contacts .btn.contact{gap:7px}
.attendance-welcome{width:min(520px,calc(100vw - 30px));border:1px solid #fff;background:linear-gradient(145deg,#fcfdff,#eef6f3);box-shadow:0 26px 100px #34466338;border-radius:26px;animation:attendance-arrive .28s ease-out}.attendance-welcome::backdrop{background:#33415c66;backdrop-filter:blur(8px)}.attendance-welcome-card{text-align:center;padding:5px 14px 16px}.attendance-welcome-icon{width:76px;height:76px;display:grid;place-items:center;margin:0 auto 20px;border-radius:25px;background:#dff2e9;color:#497f6b}.attendance-welcome-icon svg{width:42px;height:42px}.is-out .attendance-welcome-icon{background:#fcf0dc;color:#9b7946}.attendance-welcome-card h3{font-size:1.6rem;line-height:1.25;margin:14px 0}.attendance-welcome-card>p{line-height:1.6}.attendance-welcome-clock{font-size:clamp(2.5rem,9vw,3.6rem);font-weight:750;letter-spacing:.03em;font-variant-numeric:tabular-nums;color:#496f64;margin:22px 0;padding:18px 12px;background:#ffffffaa;border:1px solid #fff;border-radius:18px}.is-out .attendance-welcome-clock{color:#9d885f}.attendance-welcome-card .actions{justify-content:center;margin:22px 0 14px}.attendance-welcome-card .btn.primary{min-height:50px;padding:13px 24px;font-size:1rem}.office-mode-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:10px 0}.office-mode-actions .hint{flex:1;min-width:160px}.office-quick-frame{width:100%;height:72vh;min-height:380px;border:0;background:#eef0f5}.viewer:has(.office-quick-frame){padding:0;display:block}.attendance-welcome .dialog-head h2{font-size:1rem}@keyframes attendance-arrive{from{opacity:0;transform:translateY(16px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}@media(prefers-reduced-motion:reduce){.attendance-welcome{animation:none}}
.board{grid-template-columns:repeat(6,minmax(225px,1fr))}.lane:nth-child(5){background:#e3edf580}.lane:nth-child(6){background:#f3e6f080}@media(max-width:1150px){.board{grid-template-columns:repeat(6,235px)}}
.team-member-choice{padding:10px 12px;border:1px solid #e1e7f0;border-radius:10px;background:#ffffffa8;margin:8px 0}.form-stack fieldset{border:1px solid #dce3ef;padding:12px 15px;border-radius:12px;min-width:0}.form-stack legend{font-weight:700;padding:0 5px}.book-summary .person-label{font-size:.75rem}.book-summary>b,.book-summary>span{min-width:0;overflow-wrap:anywhere}.card-foot .person-label{font-size:.66rem}
.acceptance-note{padding:8px 10px;border-radius:10px;background:#e7f3ec;color:#4b7161;font-size:.76rem;line-height:1.6;margin:10px 0}.book-card .acceptance-note{font-size:.66rem}.role-trello{background:#e0ebfa;color:#5375a6}
