:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#241934;background:#f7f5fb;font-size:14px;--purple:#6535a3;--ink:#241934;--muted:#665c76;--line:#e8e0ef;--dark:#291541;--white:#fff}*{box-sizing:border-box}body{margin:0;line-height:1.35}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #b084df;outline-offset:3px}.skip{position:fixed;top:-80px;left:12px;z-index:5;background:white;padding:12px}.skip:focus{top:12px}.layout{display:grid;grid-template-columns:236px minmax(0,1fr);min-height:100vh}.sidebar{background:var(--dark);color:#e9dbf8;position:sticky;height:100vh;top:0;display:flex;flex-direction:column;padding:20px 17px 16px}.brand{display:flex;gap:11px;align-items:center;margin:0 6px 32px;color:white}.mark,.avatar{display:grid;place-items:center;flex:none;width:40px;height:40px;background:#9862cc;color:white;border-radius:11px;font-weight:800;font-size:21px}.brand strong{letter-spacing:.035em;font-size:15px}.brand small{display:block;margin-top:3px;font-size:9px;letter-spacing:.14em}.nav-title{color:#bda9d1;text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:.11em;margin:0 12px 12px}.navlink{padding:8px 12px;display:flex;align-items:center;gap:10px;margin:3px 0;border-radius:9px;font-weight:600}.navlink:hover,.navlink[aria-current]{background:#4d2c69;color:white}.navicon{width:19px;height:19px;flex:none}.sidebar-footer{margin-top:auto;border-top:1px solid #583e6c;padding:15px 4px 0}.account{display:flex;gap:10px;align-items:center}.account .avatar{width:34px;height:34px;font-size:14px;background:#704b94}.account-text{min-width:0;overflow-wrap:anywhere}.account small,.signout{display:block;color:#ddd0ea;font-size:11px;margin-top:3px}.signout{margin-top:12px;text-decoration:underline}.topbar{height:54px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;color:var(--muted)}.languages{display:flex;border:1px solid var(--line);border-radius:8px;padding:3px;gap:3px}.languages button{border:0;background:white;color:var(--muted);border-radius:5px;font-weight:700;font-size:12px;padding:5px 10px}.languages button[aria-pressed=true]{background:#eee4fb;color:#4d247f}main{max-width:1450px;margin:auto;padding:22px 36px 36px}.hero{border-radius:18px;background:radial-gradient(ellipse at 89% 4%,#794bac 0%,transparent 51%),linear-gradient(116deg,#341b53,#542c7c);color:white;padding:22px 28px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;position:relative;overflow:hidden}.hero:after{content:"";position:absolute;right:-40px;bottom:-140px;width:340px;height:340px;border:1px solid #b98de359;border-radius:50%;box-shadow:0 0 0 24px #b98de31c,0 0 0 50px #b98de31a;pointer-events:none}.hero>*{z-index:1}.eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;text-transform:uppercase;color:#e9d5fa}.hero h1{font-size:clamp(29px,4vw,44px);line-height:1.05;letter-spacing:-.045em;margin:8px 0}.hero p{margin:0;color:#f0e5fa;line-height:1.4;max-width:570px}.btn{border:1px solid transparent;border-radius:8px;padding:7px 13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:7px;background:var(--purple);color:white;white-space:nowrap}.btn:hover{filter:brightness(1.09)}.btn:disabled{opacity:.65;cursor:wait}.btn-light{background:white;color:#4a246d}.btn-outline{border-color:var(--line);background:white;color:var(--purple)}.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 20px}.metric,.panel{background:white;border:1px solid var(--line);border-radius:12px}.metric{padding:11px 14px;min-width:0}.metric .icon{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;color:var(--purple);background:#f0e8fa;margin-bottom:6px}.metric strong{font-size:clamp(20px,2.4vw,28px);letter-spacing:-.05em;display:block;overflow-wrap:anywhere}.metric span{display:block;color:var(--muted);margin-top:3px;font-size:12px}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:12px;margin:0 0 8px}.section-heading p{margin:3px 0 0;color:var(--muted)}h2{font-size:22px;letter-spacing:-.025em;margin:0}h3{font-size:15px;margin:0 0 6px}.panel{overflow:hidden}.panel-pad{padding:15px}.filters{display:grid;grid-template-columns:minmax(180px,2fr) minmax(130px,1fr) minmax(130px,1fr);gap:8px;padding:8px;border-bottom:1px solid var(--line)}input,select,textarea{width:100%;border:1px solid #dcd2e8;border-radius:7px;padding:5px 9px;color:var(--ink);background:#fff;min-width:0}input:not([type=checkbox]),select{min-height:32px}textarea{resize:vertical;min-height:76px}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;text-align:left;min-width:675px}th{font-size:inherit;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);background:#faf8fc;padding:7px 12px}td{border-top:1px solid #eee8f4;padding:7px 12px;vertical-align:middle}tbody tr:hover{background:#fcf9ff}.project-name{font-weight:750;color:#462663}.project-name:hover,.back:hover{text-decoration:underline}.sub{font-size:12px;color:var(--muted);display:block;margin-top:2px}.arrow{color:#69488a;font-size:19px}.badge{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:2px 8px;font-size:11px;font-weight:750;background:#eeeaf2;color:#5b5068;white-space:nowrap}.badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.badge.review,.badge.instruction{color:#7136a0;background:#f0e4fb}.badge.pending{color:#815317;background:#fff1d6}.badge.progress,.badge.update{color:#3654a3;background:#e9eeff}.badge.complete{color:#216347;background:#e1f4ea}.footnote,.muted{color:var(--muted);line-height:1.4}.footnote{font-size:12px;margin-top:9px}.back{color:var(--purple);font-weight:700;display:inline-block;margin-bottom:10px}.detail-title{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 10px}.detail-title h1{margin:0;font-size:clamp(25px,4vw,39px);letter-spacing:-.04em}.detail-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(225px,1fr);gap:10px;margin-bottom:12px}.detail-grid p{margin:4px 0 9px;line-height:1.45}.detail-grid p:last-child{margin-bottom:0}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.discussion{display:grid;grid-template-columns:minmax(245px,1fr) minmax(0,1.5fr);gap:10px}.entry{padding:8px 0;border-top:1px solid var(--line)}.entry p{margin:4px 0 0}.entry-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.entry-head time{font-size:12px;color:var(--muted)}.entry-head strong{overflow-wrap:anywhere}.forms{display:grid;gap:8px}.forms label{display:grid;gap:3px;font-weight:650}.forms [hidden]{display:none}.forms button{justify-self:start}.error{color:#a12749;margin:0}.empty{padding:14px;color:var(--muted)}.registration{max-width:515px;margin:8vh auto}
dialog{max-width:550px;width:calc(100% - 26px);max-height:90vh;border:1px solid var(--line);border-radius:14px;color:var(--ink);padding:16px}dialog::backdrop{background:#2413369a}.dialog-actions{display:flex;flex-wrap:wrap;gap:9px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:1030px){.layout{grid-template-columns:188px minmax(0,1fr)}main,.topbar{padding-left:24px;padding-right:24px}.metric{padding:10px 12px}.hero{padding:18px 22px}}@media(max-width:760px){.layout{display:block}.sidebar{height:auto;position:static;padding:10px 15px;display:flex;flex-flow:row wrap;align-items:center;gap:9px}.brand{margin:0}.brand .mark{height:32px;width:32px}.nav-title,.navicon,.account small{display:none}.sidebar-footer{margin-left:auto;margin-top:0;padding:0;border:0}.account .avatar{display:none}.signout{margin-top:2px}.navlink{display:inline-flex;padding:7px;font-size:12px}.topbar{height:48px}main,.topbar{padding-left:14px;padding-right:14px}main{padding-top:12px}.hero{align-items:flex-start;flex-direction:column;padding:16px 17px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 14px}.filters,.detail-grid,.discussion{grid-template-columns:1fr}.section-heading{align-items:flex-start}}
.sort-header{display:inline-flex;align-items:center;gap:7px;color:inherit;font:inherit;font-weight:750;letter-spacing:inherit;text-transform:inherit;text-align:left;padding:3px 0;border:0;background:none}
.sort-header:hover,th[aria-sort] .sort-header{color:var(--purple)}
.sort-header span{font-size:13px;line-height:1}
.message-cell{width:29%;min-width:180px}
.message-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere;white-space:pre-wrap;color:#462663;line-height:1.4}
.message-preview:hover{text-decoration:underline}
.message-author{display:block;margin-top:3px;font-size:.9rem;font-style:italic;color:var(--muted);text-align:left;overflow-wrap:anywhere;line-height:1.35}
.project-row{cursor:pointer}
.project-row:focus-within{background:#fcf9ff}
.assignee-picker{border:1px solid #dcd2e8;border-radius:7px}
.assignee-picker summary{cursor:pointer;padding:6px 9px;overflow-wrap:anywhere}
.assignee-picker fieldset{margin:0 10px 10px;padding:5px 8px 8px;border:1px solid var(--line);border-radius:6px;min-width:0}
.assignee-picker fieldset div{max-height:155px;overflow:auto}
.assignee-picker fieldset label{display:flex;align-items:center;gap:8px;padding:5px 0;overflow-wrap:anywhere}
.assignee-picker input{width:auto;accent-color:var(--purple)}
.assigned-users{font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.project-documents,.tasks-panel{margin-bottom:12px}
.tasks-panel h2{padding:10px 15px}
.tasks-panel #tasks>p,.tasks-panel #tasks>button,.tasks-feedback:not(:empty){margin:7px 15px 10px}
.tasks-feedback:empty{margin:0}
.tasks-feedback{color:var(--muted)}
.tasks-panel th:nth-child(2){width:44%}
.tasks-panel td:last-child{min-width:150px}
.assignments th:nth-child(2){width:38%}
#assignment-page:not(:empty){padding:8px 12px}
.register-heading{align-items:flex-start}
.access-table{min-width:300px;margin:10px 0}
.access-table th:not(:first-child),.access-table td:not(:first-child){text-align:center;width:18%}
.access-table input{width:auto;accent-color:var(--purple)}
.access-section{padding-left:14px}
.discussion>section:only-child{grid-column:1/-1}
.sign-in-panel h1{font-size:24px;margin:0 0 14px}
.sign-in-panel h2{font-size:15px;margin:0 0 7px}
.sign-in-panel details{margin:14px 0 10px;padding-top:10px;border-top:1px solid var(--line)}
.sign-in-panel summary{cursor:pointer;font-weight:700;color:var(--purple)}
.sign-in-panel details p{margin:6px 0;color:var(--muted)}
.owner-sign-in{display:inline-block;color:var(--muted);text-decoration:underline}
.first-user-link{margin-top:14px}
.sign-in-panel {
  width:100%;
  max-width:258px;
  position:relative;
  isolation:isolate;
  background:radial-gradient(ellipse at 94% 0%,#54347b,transparent 72%),
    linear-gradient(116deg,#29163f,#3e215d);
  color:#fff;
  border-color:#51336d;
}
.sign-in-panel::before {
  content:"";
  position:absolute;
  z-index:-1;
  top:-100px;
  left:49%;
  width:295px;
  height:420px;
  border:1px solid #c7a2ee26;
  border-radius:50%;
  box-shadow:0 0 0 18px #c7a2ee14,0 0 0 36px #c7a2ee0d;
  transform:rotate(20deg);
  pointer-events:none;
}
.sign-in-panel h1{font-size:21px}
.sign-in-panel .muted{color:#eee3fb}
.sign-in-panel .btn{width:100%;white-space:normal;text-align:center}
.sign-in-panel .forms>.btn{background:#e9d2ff;color:#291541}
.sign-in-panel .first-user-link{background:transparent;color:#fff;border-color:#c6a4e1;margin-top:8px}
.sign-in-panel .error{color:#ffcede}
.forgot-password{display:block;margin:10px auto 0;padding:4px;background:none;border:0;color:#f2dcff;text-decoration:underline}
.reset-queue{margin-bottom:10px}
.reset-queue button{margin:0 6px 4px 0}
.overview-recent{margin-bottom:12px}
.overview-recent .section-heading{flex-wrap:wrap}
.recent-list{margin:0;padding:0;max-height:370px;overflow:auto;scrollbar-gutter:stable}
.recent-table{table-layout:fixed;min-width:700px}
.recent-table th{position:sticky;top:0;z-index:1}
.recent-table th:nth-child(1){width:32%}
.recent-table th:nth-child(2){width:46%}
.recent-table th:nth-child(3){width:22%}
.recent-table td{height:68px;padding:5px 9px}
.recent-table .project-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.recent-table .message-preview{-webkit-line-clamp:2;line-height:1.3}
.recent-date{color:var(--muted);font-size:12px}
.overview-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.overview-charts h2{font-size:18px}
.status-chart{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0}
.donut-wrap{position:relative;width:140px;height:140px;flex:none}
.donut-wrap canvas{width:100%;height:100%;display:block}
.donut-total{position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
.donut-total strong{font-size:23px}
.chart-legend,.chart-bars{list-style:none;padding:0}
.chart-legend{margin:0;flex:1;min-width:148px}
.chart-legend li{display:flex;align-items:center;gap:7px;padding:4px 0}
.chart-legend strong{margin-left:auto;white-space:nowrap}
.chart-legend small{font-size:11px;color:var(--muted)}
.legend-dot{width:9px;height:9px;border-radius:50%;flex:none}
.status-0{background:#5b3880}.status-1{background:#b27416}.status-2{background:#347853}
.chart-bars li{margin-bottom:9px;overflow-wrap:anywhere}
.bar-value{display:flex;align-items:center;gap:8px}
.bar-value meter{flex:1;height:13px;accent-color:#6535a3}
.bar-value meter::-webkit-meter-optimum-value{background:#6535a3}
.bar-value strong{min-width:2ch;text-align:right}
.assignment-project-filter{display:flex;gap:8px;align-items:center;padding:8px 12px;color:var(--muted)}
@media(max-width:760px){.overview-charts{grid-template-columns:1fr}}
.project-admin{margin-top:12px}
.admin-settings-tab{width:100%;border:0;background:transparent;color:inherit;text-align:left;font:inherit;font-weight:600}
.admin-settings-panel[hidden],.admin-settings-heading [hidden]{display:none}
.admin-settings-heading{align-items:flex-start;flex-wrap:wrap}
.admin-settings-heading h2{flex-shrink:0}
.admin-settings-heading .dialog-actions{flex:1;justify-content:flex-end}
.admin-settings-panel.project-admin,.admin-settings-panel.entry-author-admin{margin-top:0}
.admin-backup-scope{display:block;margin-top:5px;color:var(--muted)}
.admin-database-actions{display:grid;gap:20px}
.admin-database-actions .btn{white-space:normal;text-align:left}
.admin-sidebar-signout{border:0;padding:0;background:transparent;text-align:left;cursor:pointer}
#admin-feedback:empty{display:none}
.entry-author-admin{margin-top:12px}
.author-admin-filters{display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr);gap:8px}
.author-admin-filters label{display:grid;gap:3px}
.entry-author-admin td:first-child{width:50%;overflow-wrap:anywhere}
.entry-author-admin table{min-width:680px}
.author-correction-history{margin-top:14px;color:var(--muted)}
.author-correction-history summary{cursor:pointer;color:var(--purple);font-weight:650}
.author-correction-history li{margin-bottom:10px;overflow-wrap:anywhere}
.author-correction-history p{margin:4px 0}
@media(max-width:760px){.author-admin-filters{grid-template-columns:1fr}}
.project-admin form{margin-top:10px}
.project-editors{max-height:180px;overflow:auto;border:1px solid var(--line);border-radius:8px}
.project-editors label{display:flex;align-items:center;gap:5px;padding:3px}
.project-editors input{width:auto}
.project-history{margin-top:14px}
.project-history summary{cursor:pointer;font-weight:700}
.project-history li{margin-bottom:10px;overflow-wrap:anywhere}
.project-history dt{font-weight:700}
.project-history dd{margin-left:12px}
.metric-link{color:inherit;text-decoration:none}
.metric-link:hover,.metric-link:focus-visible{border-color:#8b61b7;background:#faf6ff}
.card-filter-bar{display:flex;align-items:center;gap:10px;margin:8px 0}
.register-total{font-weight:700;margin:8px 0;color:var(--ink)}
.account-links{display:flex;align-items:center;gap:14px;margin-top:12px}
.account-links a{color:#ddd0ea;font-size:11px;text-decoration:underline}
.account-links .signout{margin-top:0}
.account-links [aria-current=page]{color:#fff;font-weight:700}
.avatar{position:relative;overflow:hidden}
.avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.profile-grid form{margin-top:12px}
.profile-grid #remove-profile-photo[hidden]{display:none}
.profile-photo-preview{margin-top:10px}
.profile-photo-preview .avatar{width:88px;height:88px;display:grid;font-size:32px}
.profile-feedback{margin:0;color:var(--muted)}
.profile-feedback:empty{display:none}
@media(max-width:760px){
  .profile-grid{grid-template-columns:1fr}
  .account-links{margin-top:2px;gap:9px}
}

.chat-unread { margin-left:auto; min-width:1.5rem; padding:.12rem .35rem; border-radius:1rem; background:#eadcf8; color:#402161; font-size:.72rem; text-align:center; }
.chat-panel { max-width:72rem; padding:1rem; display:grid; gap:.65rem; }
.chat-panel header h2,.chat-panel header p { margin:0 0 .2rem; }
.chat-panel > button { justify-self:center; }
.chat-log { height:clamp(15rem,51vh,42rem); overflow:auto; padding:.7rem; display:flex; flex-direction:column; gap:.55rem; background:#f7f3fa; border:1px solid #e8ddef; border-radius:.65rem; }
.chat-message { display:flex; flex-shrink:0; align-items:flex-start; gap:.45rem; max-width:88%; align-self:flex-start; }
.chat-own { align-self:flex-end; flex-direction:row-reverse; }
.chat-message .avatar { flex:none; width:1.9rem; height:1.9rem; font-size:.8rem; }
.chat-bubble { min-width:0; padding:.45rem .65rem; border-radius:.65rem; background:white; color:#251738; }
.chat-own .chat-bubble { background:#eadcf8; }
.chat-byline { display:flex; flex-wrap:wrap; align-items:baseline; gap:.3rem .6rem; }
.chat-byline time { font-size:.72rem; color:#5a486b; }
.chat-bubble p { margin:.2rem 0; white-space:pre-wrap; overflow-wrap:anywhere; }
.chat-bubble blockquote { margin:.3rem 0; padding:.2rem .45rem; border-left:3px solid #7851a2; overflow-wrap:anywhere; }
.chat-reply-button { border:0; background:transparent; color:#522a80; padding:.15rem 0; cursor:pointer; text-decoration:underline; }
.chat-form { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.4rem .65rem; align-items:end; }
.chat-form > label { display:grid; min-width:0; gap:8px; }
.chat-form textarea { display:block; width:100%; }
.chat-reply { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:.5rem; overflow-wrap:anywhere; }
.chat-notice:empty,.chat-panel [hidden],.chat-unread[hidden] { display:none; }

.chat-inbox { display:grid; grid-template-columns:minmax(14rem,29%) minmax(0,1fr); overflow:hidden; }
.chat-sidebar { min-width:0; padding:.85rem; border-right:1px solid #e8ddef; background:#fcfaff; }
.chat-sidebar-header,.chat-thread-header { display:flex; align-items:center; justify-content:space-between; gap:.55rem; }
.chat-sidebar-header { margin-bottom:.75rem; }
.chat-sidebar-header h2,.chat-picker h2 { margin:0; }
.chat-sidebar-header .btn { white-space:nowrap; }
.chat-search { display:flex; gap:.3rem; align-items:stretch; min-width:0; }
.chat-search input { min-width:0; width:100%; }
.chat-search .btn { display:grid; place-items:center; padding:.35rem .55rem; }
.chat-search .btn[hidden] { display:none; }
.chat-list,.chat-people { margin-top:.55rem; max-height:59vh; overflow:auto; }
.chat-contact { display:flex; align-items:center; gap:.55rem; width:100%; border:1px solid transparent; border-radius:.55rem; padding:.55rem .45rem; text-align:left; color:inherit; background:transparent; cursor:pointer; }
.chat-contact:hover,.chat-contact[aria-pressed="true"] { background:#eee5f7; border-color:#e6d8f0; }
.chat-contact-copy { display:grid; gap:.13rem; min-width:0; }
.chat-contact-copy > * { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-contact-copy small { color:#59466a; }
.chat-contact-icon { display:grid; place-items:center; flex:none; width:2rem; height:2rem; border-radius:50%; background:#e9dbf5; color:#522a80; }
.chat-thread .chat-panel { max-width:none; }
.chat-thread-header .chat-search { flex:0 1 16rem; }
.chat-thread-header > div { min-width:0; overflow-wrap:anywhere; }
.chat-back { display:none; }
.chat-picker { width:min(28rem,calc(100% - 2rem)); }
.chat-picker form { margin-top:.65rem; }
.chat-list-error:empty,.chat-people-error:empty { display:none; }
@media(max-width:830px) {
  .chat-inbox { grid-template-columns:minmax(0,1fr); }
  .chat-inbox:not(.chat-thread-open) .chat-thread,.chat-thread-open .chat-sidebar { display:none; }
  .chat-thread-header { flex-wrap:wrap; justify-content:flex-start; }
  .chat-thread-header .chat-search { flex:1 1 100%; }
  .chat-back { display:inline-flex; }
}

.topbar-actions { display:flex; align-items:center; flex:none; gap:clamp(.65rem,2.4vw,1.35rem); }
.topbar #crumb { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin-right:.5rem; }
.chat-shortcut { display:grid; place-items:center; position:relative; width:2.45rem; height:2.45rem; border-radius:.65rem; background:#ede3f8; color:#522a80; }
.chat-shortcut:hover,.chat-shortcut[aria-current="page"] { background:#e0cdf2; }
.chat-shortcut-icon { display:grid; }
.chat-notification { position:absolute; top:-.35rem; right:-.4rem; min-width:1.3rem; height:1.3rem; padding:0 .22rem; display:grid; place-items:center; border:1px solid white; border-radius:1rem; background:#6535a3; color:white; font-size:.72rem; font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.chat-shortcut[hidden],.chat-notification[hidden] { display:none; }

.project-drive-frame { display:block; width:100%; height:16rem; border:1px solid var(--line); border-radius:8px; background:white; }
.project-file-frame { height:clamp(20rem,65vh,50rem); margin-top:.55rem; }
.project-document-table { overflow-x:auto; border:1px solid var(--line); border-radius:8px; }
.project-document-table th,.project-document-table td { text-align:left; }
.project-document-table tbody tr:last-child td { border-bottom:0; }
.project-document-table td:last-child { color:var(--muted); white-space:nowrap; }
.project-document-open { display:inline-flex; align-items:center; gap:.55rem; padding:0; border:0; background:transparent; color:var(--purple); font:inherit; font-weight:700; text-align:left; }
.project-document-open:hover { text-decoration:underline; }
.project-image-viewer{margin-top:12px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#faf8fc}
.project-image-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;padding:10px}
.project-image-title{overflow-wrap:anywhere;min-width:0}
.project-image-toolbar .dialog-actions{align-items:center}
.image-zoom-status{min-width:4em;text-align:center;color:var(--muted);font-size:.9rem}
.project-image-stage{height:min(65vh,650px);min-height:200px;overflow:auto;background:#eee8f4;overscroll-behavior:contain}
.project-image-canvas{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;height:max-content;padding:12px}
.project-image-canvas img{display:block;max-width:none;max-height:none;object-fit:contain}
.project-image-canvas img[hidden]{display:none}
.project-image-feedback{margin:0;padding:0 10px 10px}
.project-image-feedback:empty{display:none}
.project-document-table td.project-document-empty { white-space:normal; }
.project-document-cell { display:flex; flex-wrap:wrap; align-items:baseline; gap:.2rem .75rem; }
.project-document-drive-link { color:var(--muted); font-size:.8rem; text-decoration:underline; }
.project-upload-panel { margin-bottom:1rem; }
.project-upload-panel h4 { margin:.35rem 0 .55rem; }
.project-upload-controls { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:.55rem; margin-top:.6rem; }
.project-upload-controls [hidden] { display:none; }
.project-document-table .project-file-choice { width:1%; padding-right:.25rem; }
.project-file-choice input { width:auto; margin:0; accent-color:var(--purple); }
.project-upload-status:empty { display:none; }

.register-filters{grid-template-columns:minmax(180px,2fr) repeat(3,minmax(130px,1fr))}
.activity-author-filter{display:grid;gap:3px;margin:8px 0 10px;color:var(--muted)}
.author-filter-hint{font-size:.9rem;margin:8px 0}
@media(max-width:1030px){.register-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.register-filters{grid-template-columns:1fr}}

.todo-filters{grid-template-columns:minmax(180px,2fr) minmax(160px,1fr) auto;align-items:center}
.todo-overdue-filter{display:flex;align-items:center;gap:7px;white-space:nowrap}
.todo-overdue-filter input{width:auto;accent-color:var(--purple)}
.todo-table{min-width:800px;table-layout:fixed}
/* Compact utility columns leave the remaining width for the to-do title. */
.todo-table th,.todo-table td{padding:7px 8px}
.todo-table th:nth-child(1),.todo-table th:nth-child(4){width:9.5rem}
.todo-table th:nth-child(2){width:auto}
.todo-table th:nth-child(3){width:10rem}
.todo-table th:nth-child(5){width:13rem}
.todo-table td:nth-child(1),.todo-table td:nth-child(4){white-space:nowrap}
.todo-table .todo-title-button{white-space:normal}
.todo-title{display:flex;align-items:center;gap:6px;overflow-wrap:anywhere;color:#462663}
.todo-title>div{min-width:0;flex:1}.todo-expand{display:grid;place-items:center;flex:none;width:26px;height:28px;border:0;border-radius:5px;background:#f0e8fa;color:var(--purple)}
.todo-expand[aria-expanded=true] svg{transform:rotate(90deg)}
/* Keep child rows distinct on hover and keyboard focus as well as at rest. */
.todo-table .todo-main{background:#fff}
.todo-table .todo-subtask{background:#f0e8f8}
.todo-table .todo-subtask:hover,.todo-table .todo-subtask:focus-within{background:#e9def3}
.todo-table .todo-subtask .todo-title{margin-left:32px;padding-left:12px;border-left:3px solid #b799d2}
.todo-table .todo-subtask .todo-title-button{font-size:.94rem;font-weight:600;color:#5d4374}
.todo-actions{display:flex;gap:5px;flex-wrap:wrap}.todo-actions .btn{padding:4px 7px;font-size:.85rem;white-space:normal}
.todo-overdue{display:block;color:#a12749;font-weight:650;margin-top:3px}
.todo-child-message{padding-left:38px;color:var(--muted)}.todo-more{margin:10px}
@media(max-width:760px){.todo-filters{grid-template-columns:1fr}}

.todo-filter-hint{font-size:.9rem;margin:8px 12px}

.todo-cell-button{display:block;border:0;border-radius:4px;padding:3px 4px;margin:-3px -4px;background:transparent;color:inherit;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;max-width:100%;cursor:text;font:inherit}
.todo-cell-button:hover{background:#f0e8fa;outline:1px solid var(--line)}
.todo-title-button{font-weight:750;color:#462663}
.todo-cell-button[hidden],.todo-inline-editor [hidden]{display:none}
.todo-inline-input{width:100%;min-width:0}
.todo-inline-error{font-size:.9rem;margin:5px 0;overflow-wrap:anywhere}
.todo-inline-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:5px}.todo-inline-actions .btn{font-size:.8rem;padding:3px 6px}

.report-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px}.report-filters label{display:grid;gap:5px;font-weight:650}.report-form [hidden]{display:none}.report-preview-option{display:flex;align-items:center;gap:8px;margin:14px 0}.report-preview-option input{width:auto}.report-document{background:#fff;border:1px solid var(--line);border-radius:12px;padding:20px;margin-top:14px}.report-document header{border-bottom:2px solid var(--purple);padding-bottom:10px}.report-document header p{margin:3px 0}.report-brand{font-weight:750;color:var(--purple)}.report-metadata{display:flex;flex-wrap:wrap;gap:12px 24px}.report-metadata div{display:flex;gap:8px}.report-metadata dt{font-weight:700}.report-metadata dd{margin:0}.report-applied,.report-note,.report-document footer{color:var(--muted);font-size:.9rem}.report-table{table-layout:fixed;min-width:850px}.report-table td{vertical-align:top;white-space:pre-wrap;overflow-wrap:anywhere}.report-table-projects th:first-child{width:24%}.report-table-projects th:last-child{width:42%}.report-author{display:block;font-style:italic;font-size:.9rem;margin-top:4px}.report-document footer{margin-top:12px}.report-print-frame{position:fixed;left:-10000px;top:0;width:1120px;height:800px;border:0}@media(max-width:850px){.report-filters{grid-template-columns:repeat(2,minmax(140px,1fr))}}@media(max-width:550px){.report-filters{grid-template-columns:1fr}.report-document{padding:12px}}
/* Match the other filters while keeping multi-select options in a popover. */
.report-form{overflow:visible}.report-status-filter{display:grid;align-content:start;gap:5px;min-width:0}.report-status-filter>span{font-weight:650}.report-status-dropdown{position:relative;min-width:0}.report-status-dropdown summary{display:flex;align-items:center;justify-content:space-between;gap:8px;list-style:none;cursor:pointer;background:#fff;border:1px solid #dcd2e8;border-radius:7px;min-height:32px;padding:5px 9px;color:var(--ink)}.report-status-dropdown summary::-webkit-details-marker{display:none}.report-status-dropdown summary:focus-visible{outline:3px solid #b084df;outline-offset:3px}.report-status-dropdown summary svg{flex:none}.report-status-dropdown[open] summary svg{transform:rotate(180deg)}
.report-statuses{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:20;min-width:0;margin:0;padding:8px;background:#fff;border:1px solid #dcd2e8;border-radius:7px;box-shadow:0 8px 24px #29154126}.report-status-choices{display:grid;gap:2px}.report-status-choices label{display:flex;align-items:center;gap:8px;padding:6px;border-radius:4px;font-weight:400;cursor:pointer}.report-status-choices label:hover,.report-status-choices label:focus-within{background:#f0e8fa}.report-status-choices input{width:auto;accent-color:var(--purple)}.report-status-actions{display:flex;flex-wrap:wrap;gap:12px;border-top:1px solid var(--line);padding:9px 6px 3px;margin-top:5px}.report-status-actions button{background:none;border:0;padding:0;color:var(--purple);text-decoration:underline;font-size:.9rem}.report-status-actions [data-report-status-done]{margin-left:auto;font-weight:700}
