* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 16px/1.6 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei UI","Microsoft YaHei",sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font: inherit;
}

button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

button:focus-visible, a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

a {
  color: var(--blue);
  text-decoration: none;
}

button {
  color: inherit;
}

svg.i {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  vertical-align: middle;
}

h1, h2, h3, p {
  margin: 0;
}

h1 {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.3px;
  font-weight: 600;
}

h2 {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
}

h3 {
  font-size: 15px;
  font-weight: 600;
}

small, .small {
  font-size: 13px;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.sub {
  color: var(--sub);
}

.blue {
  color: var(--blue);
}

.green {
  color: var(--green);
}

.orange {
  color: var(--orange);
}

.flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.wrap {
  flex-wrap: wrap;
}

.stack {
  display: grid;
  gap: 20px;
  align-content: start;
}

.gap8 {
  gap: 8px;
}

.mb8 {
  margin-bottom: 8px;
}

.mb16 {
  margin-bottom: 16px;
}

.mt16 {
  margin-top: 16px;
}

.mt24 {
  margin-top: 24px;
}

.wfull {
  width: 100%;
}

.textbutton {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 14px;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.textbutton:hover {
  text-decoration: underline;
}

/* btn(..., 'textbutton') renders "btn textbutton"; keep it a plain text action. */
.btn.textbutton, .btn.textbutton:hover {
  border: 0;
  color: var(--blue);
  background: none;
  box-shadow: none;
  min-height: 0;
  padding: 4px 0;
}

.btn {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  line-height: 1.5;
  white-space: nowrap;
}

.btn:hover {
  background: var(--fill);
  border-color: var(--line-strong);
}

.btn.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.btn.primary:hover {
  background: var(--blue-dark);
}

.btn.soft {
  background: var(--blue-light);
  border-color: transparent;
  color: var(--blue);
}

.btn.sm {
  padding: 4px 10px;
  min-height: 30px;
  font-size: 13px;
}

.btn .i {
  width: 16px;
  height: 16px;
}

.iconbtn {
  border: 0;
  background: transparent;
  padding: 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iconbtn:hover {
  background: var(--fill);
}

.tag {
  font-size: 12px;
  border-radius: 4px;
  padding: 2px 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1.7;
  background: var(--fill);
  color: var(--muted);
  white-space: nowrap;
  font-weight: 400;
}

.tag.blue {
  background: var(--blue-light);
  color: var(--blue);
}

.tag.green {
  background: var(--green-bg);
  color: var(--green);
}

.tag.orange {
  background: var(--orange-bg);
  color: var(--orange);
}

.tag.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e7edff;
  color: #4463a9;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.avatar.mint {
  background: #def3e9;
  color: #287258;
}

.avatar.gold {
  background: #fff0d6;
  color: #946623;
}

.avatar.pink {
  background: #f6e5f0;
  color: #985b7f;
}

button.avatar {
  border: 0;
  padding: 0;
}

.avatar.large {
  width: 46px;
  height: 46px;
  font-size: 17px;
}

.avatarrow {
  display: flex;
  padding-left: 6px;
}

.avatarrow .avatar {
  margin-left: -6px;
  border: 2px solid #fff;
  width: 28px;
  height: 28px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 230px;
  border-right: 1px solid var(--line-soft);
  z-index: 30;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 20px;
  color: var(--ink);
}

.brandmark {
  height: 28px;
  width: 28px;
  border-radius: 8px;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.brand strong {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: .5px;
}

.brand > div > span {
  display: block;
  font-size: 10px;
  letter-spacing: 1.2px;
  line-height: 1;
  color: var(--muted);
}

.space {
  margin: 0 10px 14px;
  background: transparent;
  border-radius: var(--radius-md);
  padding: 5px 2px 5px 10px;
  display: flex;
  gap: 4px;
  align-items: center;
  text-align: left;
}

.nav {
  padding: 0 12px;
  overflow: auto;
  flex: 1;
}

.navlabel {
  font-size: 12px;
  color: var(--sub);
  margin: 18px 11px 6px;
}

.navitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  background: none;
  border: 0;
  text-align: left;
  color: var(--ink-2);
  font-size: 14px;
  margin-bottom: 3px;
}

.navitem .i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.navitem:hover {
  background: var(--fill-2);
}

.navitem.active {
  font-weight: 600;
}

.navitem .count {
  font-size: 11px;
  background: var(--fill-2);
  border-radius: 4px;
  margin-left: auto;
  padding: 0 6px;
  color: var(--muted);
}

.navitem.active .count {
  background: var(--surface);
  color: var(--ink);
}

.navsep {
  height: 1px;
  background: var(--line);
  margin: 16px 10px;
}

.sidebottom {
  padding: 12px;
  border-top: 1px solid var(--line-soft);
}

.demobox {
  padding: 11px;
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--muted);
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 2px 7px;
}

.profile strong {
  font-size: 14px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile small {
  font-size: 12px;
  display: block;
}

.main {
  margin-left: 230px;
  min-height: 100vh;
}

.topbar {
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.breadcrumb strong {
  font-weight: 500;
  color: var(--ink);
}

.breadcrumb a {
  color: var(--muted);
  padding: 4px 0;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.topright {
  display: flex;
  align-items: center;
  gap: 16px;
}

.searchbox {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: var(--radius-md);
  width: 248px;
}

.searchbox:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.searchbox .i {
  width: 16px;
  height: 16px;
  color: var(--sub);
}

.searchbox input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  min-width: 0;
}

.key {
  font: 11px/1.5 monospace;
  white-space: nowrap;
  color: var(--sub);
  border: 1px solid var(--line-strong);
  padding: 0 4px;
  border-radius: 3px;
}

.content {
  max-width: 1320px;
  padding: 30px 32px 48px;
  margin: auto;
}

.pagehead {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.pagehead p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}

.date {
  font-size: 13px;
  color: var(--muted);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--muted);
  margin-bottom: 5px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.padded {
  padding: 20px 22px;
}

.panelhead {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.panelhead .i {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.panelhead .btn .i {
  width: 16px;
  height: 16px;
  color: currentColor;
}

.grid2 {
  display: grid;
  grid-template-columns: minmax(0,1.85fr) minmax(290px,1fr);
  gap: 22px;
}

.grid3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.equal2 {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.focus {
  background: var(--surface);
}

.focus h2 {
  font-size: 20px;
  margin: 12px 0 8px;
}

.focus p {
  font-size: 14px;
  color: var(--muted);
  max-width: 620px;
}

.focus .deliverable {
  display: flex;
  gap: 9px;
  padding: 11px 13px;
  background: var(--bg);
  border-radius: var(--radius-md);
  margin: 17px 0;
  color: var(--muted);
  font-size: 14px;
}

.focus .deliverable .i {
  width: 18px;
  height: 18px;
}

.progress {
  height: 5px;
  background: var(--fill);
  border-radius: 5px;
  overflow: hidden;
}

.progress span {
  display: block;
  background: var(--blue);
  height: 100%;
  border-radius: 5px;
}

.progress.green span {
  background: #33a785;
}

.route-strip {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 13px;
  margin-top: 20px;
}

.stage {
  font-size: 13px;
}

.stage .progress {
  height: 4px;
  margin-bottom: 9px;
}

.stage.current {
  color: var(--blue);
}

.stage .stagetime {
  font-size: 12px;
  color: var(--sub);
  margin-top: 2px;
}

.meeting-date {
  border: 1px solid var(--line);
  border-radius: 7px;
  width: 53px;
  overflow: hidden;
  flex-shrink: 0;
  text-align: center;
  line-height: 1.3;
  background: var(--surface);
}

.meeting-date .month {
  background: var(--fill);
  font-size: 12px;
  color: var(--muted);
  padding: 3px;
}

.meeting-date .day {
  font-size: 23px;
  padding: 5px;
  color: var(--ink-2);
}

.meeting-meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.divider {
  height: 1px;
  background: var(--fill);
  margin: 18px 0;
}

.checklist {
  font-size: 14px;
  display: grid;
  gap: 12px;
  margin: 17px 0;
}

.checklist .i {
  width: 16px;
  height: 16px;
}

.checklist .done {
  color: var(--sub);
}

.checklist .done span {
  text-decoration: line-through;
}

.row {
  padding: 15px 22px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}

.row:last-child {
  border-bottom: 0;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-main h3 {
  font-size: 14px;
  font-weight: 500;
}

.row-main p {
  font-size: 12px;
  color: var(--sub);
  margin-top: 3px;
}

.row:hover {
  background: var(--surface);
}

.rowbutton {
  border: 0;
  background: transparent;
  text-align: left;
  display: block;
  width: 100%;
  color: var(--ink);
}

.rowbutton:hover {
  color: var(--blue);
}

.checkcircle {
  width: 17px;
  height: 17px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
}

.checkcircle.blue {
  border-color: var(--blue);
  border-width: 4px;
}

.checkcircle.orange {
  border-color: #e5a64a;
  border-width: 4px;
}

.checkcircle.done {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.activity {
  padding: 17px 22px;
  display: flex;
  gap: 11px;
  position: relative;
}

.activity + .activity {
  padding-top: 8px;
}

.activity .text {
  font-size: 13px;
}

.activity .text p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.activity strong {
  font-weight: 550;
}

.fileicon {
  width: 35px;
  height: 40px;
  border: 1px solid var(--blue-line);
  border-radius: 5px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.fileicon.pdf {
  background: var(--red-bg);
  border-color: #f7dcd7;
  color: #d46a5b;
}

.fileicon.ppt {
  background: #fff4e9;
  border-color: #f8e0c7;
  color: #b67936;
}

.fileicon.code {
  background: var(--green-bg);
  border-color: #d8eee2;
  color: var(--green);
}

.section-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.tabs {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow: auto;
}

.tab {
  background: none;
  border: 0;
  padding: 0 1px 13px;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tab.active {
  color: var(--ink);
  border-color: var(--blue);
  font-weight: 600;
}

.routecard {
  display: flex;
  flex-direction: column;
}

.routeicon {
  width: 43px;
  height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 9px;
}

.routeicon.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.routeicon.green {
  background: var(--green-bg);
  color: var(--green);
}

.routecard h2 {
  font-size: 19px;
}

.routecard p {
  font-size: 14px;
  color: var(--muted);
  flex: 1;
}

.routecard .meta {
  font-size: 12px;
  color: var(--sub);
  display: flex;
  gap: 16px;
}

.callout {
  padding: 15px 18px;
  background: var(--blue-light);
  border: 1px solid var(--blue-line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.callout .i {
  color: var(--blue);
  margin-top: 2px;
}

.timeline {
  position: relative;
  padding: 5px 0;
}

.timeline-item {
  position: relative;
  padding: 0 0 24px 40px;
}

.timeline-item:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 25px;
  bottom: 0;
  width: 1px;
  background: var(--fill-2);
}

.timeline-item:last-child:before {
  display: none;
}

.timeline-num {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--fill);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 1px solid var(--line);
}

.timeline-num.done {
  background: var(--green-bg);
  color: var(--green);
  border-color: #d2eddf;
}

.timeline-num.current {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.timeline-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: white;
}

.timeline-body.current {
  border-color: var(--blue-border);
  box-shadow: 0 0 0 2px #f2f6ff;
}

.timeline-body p {
  font-size: 14px;
  color: var(--muted);
  margin: 8px 0 14px;
}

.timeline-foot {
  font-size: 13px;
  padding: 10px 12px;
  background: var(--bg);
  border-radius: 5px;
  color: var(--muted);
}

.factlist {
  display: grid;
  gap: 12px;
  margin-top: 17px;
}

.factlist > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.factlist > div span:first-child {
  color: var(--muted);
}

.mentorcover {
  height: 6px;
  background: #6389dd;
}

.mentorcard {
  padding: 23px;
}

.mentorcard .quote {
  background: var(--bg);
  border-radius: 6px;
  padding: 14px;
  font-size: 14px;
  color: var(--muted);
  margin: 18px 0;
  line-height: 1.8;
}

.mentorstats {
  display: flex;
  gap: 25px;
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0;
}

.mentorstats strong {
  font-size: 17px;
  color: var(--ink);
  display: block;
  font-weight: 550;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.filters {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.filter {
  border: 1px solid transparent;
  background: transparent;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--muted);
}

.filter.active {
  color: var(--ink);
  background: var(--fill-2);
  border-color: transparent;
  font-weight: 500;
}

.input {
  border: 1px solid var(--line-strong);
  padding: 9px 11px;
  background: var(--surface);
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
}

.input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.local-search {
  width: 230px;
  max-width: 100%;
}

.tablewrap {
  overflow: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  text-align: left;
}

th {
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  background: var(--surface);
  padding: 12px 20px;
  white-space: nowrap;
}

td {
  padding: 15px 20px;
  border-top: 1px solid var(--line-soft);
  vertical-align: middle;
}

tbody tr:hover {
  background: var(--bg);
}

td .filename {
  border: 0;
  padding: 0;
  background: none;
  font-size: 14px;
  text-align: left;
  color: var(--ink);
}

td .filename:hover {
  color: var(--blue);
}

.nowrap {
  white-space: nowrap;
}

.meeting-card {
  padding: 21px;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.meeting-card .middle {
  flex: 1;
}

.meeting-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.meeting-card p {
  font-size: 13px;
  color: var(--muted);
}

.meeting-card + .meeting-card {
  border-top: 1px solid var(--line);
}

.kanban {
  display: grid;
  overflow-x: auto;
}

.kanban-head {
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.taskcard {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 15px;
  margin-bottom: 12px;
  display: block;
}

.taskcard:hover h3 {
  color: var(--blue);
}

.taskcard:hover {
  border-color: var(--blue-border);
  transform: translateY(-1px);
}

.taskcard h3 {
  font-size: 14px;
  margin: 10px 0;
}

.taskcard p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 13px;
}

.taskcard .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--sub);
}

.taskcard .avatar {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.assistant-layout {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 22px;
  min-height: 580px;
}

.sources {
  padding: 20px;
}

.source-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 13px;
}

.source-item input {
  accent-color: var(--blue);
  margin-top: 5px;
}

.source-item small {
  display: block;
  font-size: 12px;
}

.chat {
  display: flex;
  flex-direction: column;
  padding: 26px;
  min-height: 490px;
}

.chat-message {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.9;
  margin: 18px 0;
}

.chat-message h3 {
  margin-bottom: 8px;
}

.chat-message ul {
  padding-left: 20px;
}

.chat-message .citation {
  background: var(--blue-light);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--blue);
  border: 0;
  font-size: 12px;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0;
}

.suggestions button {
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}

.composer {
  margin-top: auto;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.composer textarea {
  width: 100%;
  border: 0;
  resize: vertical;
  min-height: 65px;
  outline: none;
  font-size: 14px;
}

.composer .bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(300px,1fr);
  gap: 22px;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.setting-row:last-child {
  border: 0;
}

.setting-row p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
}

.switch {
  width: 37px;
  height: 21px;
  border-radius: 20px;
  border: 0;
  background: #cbd2dc;
  position: relative;
  flex-shrink: 0;
}

.switch:after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--surface);
  position: absolute;
  top: 3px;
  left: 3px;
}

.switch.on {
  background: var(--blue);
}

.switch.on:after {
  left: 19px;
}

.statgrid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 15px;
  margin-bottom: 22px;
}

.statbox {
  padding: 17px 21px;
}

.statbox p {
  font-size: 13px;
  color: var(--muted);
}

.statbox strong {
  font-size: 26px;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

.statbox small {
  font-size: 12px;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.empty > .i {
  width: 24px;
  height: 24px;
  color: var(--sub);
  margin-bottom: 10px;
}

.mobile-toggle {
  display: none;
}

.overlay {
  display: none;
}

.modal {
  border: 1px solid var(--line);
  max-width: 720px;
  width: calc(100% - 34px);
  padding: 0;
  color: var(--ink);
  box-shadow: var(--shadow-pop);
  max-height: 88vh;
}

.modal::backdrop {
  background: rgba(31,30,28,.32);
  backdrop-filter: blur(2px);
}

.modal-head {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1;
}

.modal-head h2 {
  font-size: 17px;
}

.modal-head .iconbtn {
  color: var(--muted);
}

.modal-body {
  padding: 24px 25px;
  font-size: 14px;
}

.modal-body p {
  margin-bottom: 13px;
}

.modal-body h3 {
  margin: 18px 0 8px;
}

.modal-body .field {
  margin-top: 16px;
}

.modal-body .form-stack > .field {
  margin-top: 0;
}

.modal-body .field label {
  display: block;
  font-size: 13px;
}

.modal .form-actions {
  position: sticky;
  bottom: -24px;
  margin: 4px -25px -24px;
  padding: 14px 25px;
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
}

.modal-foot {
  padding: 17px 25px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-body .row {
  padding: 13px 0;
}

.notice {
  padding: 11px 14px;
  border-radius: 6px;
  background: var(--orange-bg);
  color: var(--orange);
  font-size: 13px;
  margin-bottom: 16px;
}

.modal-body .deliverable {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 13px 16px;
  margin: 12px 0;
}

.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%,15px);
  background: #273348;
  color: #fff;
  padding: 11px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px #1b2a4930;
  font-size: 14px;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  max-width: 90vw;
  text-align: center;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%,0);
}

.featurelist {
  display: grid;
  gap: 12px;
  font-size: 14px;
}

.featurelist > div {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
}

.featurelist p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 0;
}

.diagram-flow {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
  margin: 18px 0;
}

.diagram-flow > div {
  background: var(--fill);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  text-align: center;
  font-size: 14px;
}

.diagram-flow .n {
  color: var(--blue);
  font-size: 12px;
  margin-bottom: 5px;
}

.article {
  max-width: 960px;
}

.article p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
}

.article ul {
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
}

.article h2 {
  margin-bottom: 12px;
}

.label {
  font-size: 13px;
  color: var(--muted);
}

.square-icon {
  height: 32px;
  width: 32px;
  background: var(--fill);
  color: var(--muted);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.square-icon .i {
  width: 18px;
  height: 18px;
}

@media (min-width: 1550px) {
  .padded {
    padding: 26px;
  }
  .topbar {
    padding: 0 40px;
  }
}

@media (max-width: 1200px) {
  .sidebar {
    width: 206px;
  }
  .main {
    margin-left: 206px;
  }
  .brand {
    padding: 0 20px;
  }
  .content {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .grid2 {
    grid-template-columns: minmax(0,1.5fr) minmax(270px,1fr);
  }
  .grid3 {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .searchbox {
    width: 220px;
  }
  .route-strip {
    gap: 8px;
  }
  .stage {
    font-size: 12px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 950px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
  .grid2 > .stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .searchbox {
    width: 190px;
  }
  .topright {
    gap: 8px;
  }
  .breadcrumb > #crumbSection, .breadcrumb > .slash {
    display: none;
  }
  .equal2 {
    grid-template-columns: 1fr;
  }
  .date {
    display: none;
  }
  .grid2 > .panel {
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 230px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .overlay.visible {
    display: block;
    position: fixed;
    inset: 0;
    background: #17233955;
    z-index: 25;
  }
  .main {
    margin: 0;
  }
  .mobile-toggle {
    display: flex;
  }
  .topbar {
    padding: 0 16px;
    height: 60px;
    gap: 12px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .topright > .tag, .topright > .avatar {
    display: none;
  }
  .searchbox {
    width: 36px;
    padding: 8px;
    background: none;
    border: 0;
  }
  .searchbox input, .searchbox .key {
    display: none;
  }
  .searchbox:focus-within {
    position: absolute;
    left: 60px;
    right: 60px;
    top: 11px;
    background: white;
    border: 1px solid var(--line);
    width: auto;
  }
  .searchbox:focus-within input {
    display: block;
  }
  .content {
    padding: 24px 16px;
  }
  .pagehead {
    gap: 12px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 24px;
  }
  .pagehead p {
    font-size: 13px;
  }
  .grid3, .grid2 > .stack, .equal2, .settings-grid {
    grid-template-columns: 1fr;
  }
  .padded {
    padding: 19px;
  }
  .panelhead {
    padding: 15px 18px;
  }
  .focus h2 {
    font-size: 20px;
  }
  .focus .between {
    flex-wrap: wrap;
  }
  .focus .between .flex {
    flex-wrap: wrap;
  }
  .row {
    padding: 14px 17px;
  }
  .row .due {
    display: none;
  }
  .route-strip {
    grid-template-columns: repeat(2,1fr);
    gap: 15px;
  }
  .route-strip .stage {
    font-size: 13px;
  }
  .row-main h3 {
    font-size: 14px;
  }
  .meeting-card {
    padding: 17px;
    flex-wrap: wrap;
  }
  .meeting-card .btn {
    margin-left: 70px;
  }
  .statgrid {
    gap: 9px;
  }
  .statbox {
    padding: 12px;
  }
  .statbox p {
    font-size: 12px;
  }
  .statbox small {
    font-size: 12px;
  }
  .topright .iconbtn {
    padding: 4px;
  }
  .chat {
    padding: 18px;
  }
  .chat-message {
    padding: 15px;
  }
  .diagram-flow {
    grid-template-columns: repeat(2,1fr);
  }
  .modal-body {
    padding: 19px;
  }
  .modal-foot {
    padding: 15px 19px;
  }
  .tabs {
    gap: 20px;
  }
  .tablewrap table {
    min-width: 610px;
  }
  .local-search {
    width: 100%;
  }
  .toolbar {
    align-items: stretch;
  }
  .sources {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  left: 10px;
  top: -60px;
  background: var(--surface);
  padding: 10px;
  z-index: 150;
}

.skip-link:focus {
  top: 10px;
}

.team-label {
  flex: 1;
  min-width: 0;
}

.space-caption {
  font-size: 12px;
  color: var(--muted);
  display: block;
  line-height: 1.4;
}

.team-label select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 550;
  width: 100%;
  min-height: 24px;
  font-size: 13px;
  cursor: pointer;
}

.app-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  padding: 2px 7px 14px;
}

.app-status.offline {
  color: var(--red);
}

.connection-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.app-status.offline .connection-dot {
  background: var(--red);
}

.profile {
  min-width: 0;
}

.profile strong {
  display: block;
  max-width: 125px;
}

.notification-button {
  position: relative;
}

.topright > .iconbtn, #profileButton {
  min-width: 32px;
  min-height: 32px;
}

.unread-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--red);
  border: 2px solid white;
  border-radius: 50%;
  top: 5px;
  right: 7px;
}

.errorbox {
  border: 1px solid #f0ccce;
  background: var(--red-bg);
  border-radius: 8px;
  padding: 16px;
  color: #a13e47;
  font-size: 14px;
  line-height: 1.8;
}

.errorbox .btn {
  margin-top: 12px;
}

.loading {
  padding: 65px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.loading:before {
  content: '';
  display: block;
  border: 3px solid var(--blue-line);
  border-top-color: var(--blue);
  width: 26px;
  height: 26px;
  margin: 0 auto 15px;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to{
  transform:rotate(360deg)}
}

.empty .empty-icon {
  height: 40px;
  width: 40px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.empty .empty-icon .i {
  width: 20px;
  height: 20px;
  margin: 0;
  color: var(--muted);
}

.empty h3 {
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 15px;
}

.empty p {
  max-width: 410px;
  margin: 0 auto 16px;
  font-size: 13px;
}

.empty .btn {
  margin-top: 3px;
}

.body-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.9;
}

.rich-section {
  margin: 22px 0;
}

.rich-section h3 {
  margin-bottom: 10px;
}

.metadata {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--sub);
  font-size: 12px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.field.full {
  grid-column: 1/-1;
}

.field label, .field-label {
  font-size: 13px;
  color: var(--muted);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
}

.form-stack {
  display: grid;
  gap: 17px;
}

.helptext {
  font-size: 12px;
  color: var(--sub);
  line-height: 1.6;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  flex-wrap: wrap;
}

.form-error {
  font-size: 13px;
  color: var(--red);
  background: var(--red-bg);
  padding: 10px 12px;
  border-radius: 6px;
}

.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.check-label input {
  width: auto;
  accent-color: var(--blue);
}

.dialog-wide {
  max-width: 900px;
}

.stage-editor {
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: 8px;
  margin: 16px 0;
  background: var(--bg);
}

.task-editor {
  border-left: 2px solid var(--blue-line);
  padding: 12px;
  margin: 12px 0;
  background: var(--surface);
}

.editor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.task-editor .field + .field {
  margin-top: 9px;
}

.danger-text {
  color: var(--red);
}

.section-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detail-list {
  display: grid;
  gap: 12px;
}

.detail-list a, .detail-list button {
  min-width: 0;
  overflow-wrap: anywhere;
}

.list-link {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 14px;
  background: white;
  text-align: left;
  width: 100%;
}

.list-link:hover {
  border-color: var(--line-strong);
  background: var(--bg);
}

.list-link .i:last-child {
  margin-left: auto;
  color: var(--sub);
}

.taskcard {
  overflow-wrap: anywhere;
}

.kanban {
  grid-template-columns: repeat(5,minmax(180px,1fr));
  align-items: start;
}

.taskcard .task-owner {
  font-size: 12px;
  color: var(--sub);
  margin: 10px 0 0;
}

.review-card {
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 8px;
  background: var(--surface);
}

.submission {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-top: 13px;
}

.feedback {
  background: var(--green-bg);
  padding: 12px 15px;
  border-radius: 6px;
  margin-top: 12px;
  font-size: 13px;
}

.timeline-body .rich-section:last-child {
  margin-bottom: 0;
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 12px;
  color: var(--sub);
}

.auth-root {
  grid-template-columns: 1fr 1fr;
}

.auth-story {
  padding: 10vh 8vw;
  background: var(--blue-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.auth-story:after {
  content: '';
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid var(--blue-line);
  border-radius: 50%;
  right: -160px;
  bottom: -240px;
  box-shadow: 0 0 0 60px #e9effd,0 0 0 120px #eef3fe;
}

.auth-story .brand {
  padding: 0;
  margin-bottom: 70px;
}

.auth-story h1 {
  font-size: 42px;
  line-height: 1.45;
  letter-spacing: -1px;
  max-width: 480px;
}

.auth-story > p {
  color: var(--muted);
  max-width: 380px;
  margin-top: 20px;
  font-size: 15px;
  line-height: 1.9;
}

.auth-steps {
  margin-top: 45px;
  display: grid;
  gap: 20px;
  position: relative;
  z-index: 1;
}

.auth-step {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  color: var(--muted);
}

.auth-step span {
  width: 30px;
  height: 30px;
  border: 1px solid var(--blue-line);
  color: var(--blue);
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.auth-main {
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
}

.auth-card h2 {
  font-size: 26px;
}

.auth-card > p {
  color: var(--muted);
  font-size: 14px;
  margin: 12px 0 30px;
}

.auth-card .field {
  margin: 17px 0;
}

.auth-card .btn.primary {
  width: 100%;
  margin-top: 10px;
  padding: 11px;
}

.auth-note {
  font-size: 12px !important;
  color: var(--sub) !important;
  text-align: center;
  line-height: 1.8;
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  gap: 15px;
}

.auth-links button {
  font-size: 13px;
}

.login-logo {
  display: none;
}

.copy-field {
  display: flex;
  gap: 8px;
}

.copy-field input {
  flex: 1;
}

.text-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-icon {
  width: 35px;
  height: 40px;
  border-radius: 5px;
  background: var(--blue-light);
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 10px;
  flex-shrink: 0;
}

.resource-icon.paper {
  background: var(--red-bg);
  color: #c66855;
}

.resource-icon.slides {
  background: var(--orange-bg);
  color: #a87537;
}

.details-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}

.routecard .btn {
  width: 100%;
}

.filter.active:focus-visible {
  outline-offset: 3px;
}

.source-check {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.source-check input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.chat-message:empty {
  display: none;
}

.chat .composer {
  margin-top: 24px;
}

.settings-menu {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin-bottom: 22px;
  padding-bottom: 8px;
}

.settings-menu button {
  white-space: nowrap;
}

.member-row .row-main {
  min-width: 100px;
}

.member-role {
  min-width: 95px;
  max-width: 130px;
}

.date-line {
  color: var(--muted);
  font-size: 13px;
}

.link-button {
  color: var(--blue);
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.resource-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.version-item {
  border-left: 2px solid var(--blue-line);
  padding: 0 0 18px 17px;
  font-size: 13px;
}

.version-item h3 {
  font-size: 14px;
}

.version-item .small {
  margin-top: 5px;
}

.empty-col {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding: 30px 10px;
}

.inline-form {
  display: flex;
  gap: 10px;
  align-items: end;
}

.inline-form .field {
  flex: 1;
}

.pill-success {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 13px;
}

.scope-badge {
  font-size: 12px;
  color: var(--sub);
}

.input[type=file] {
  padding: 12px;
  border: 1px dashed var(--blue-line);
  background: var(--bg);
}

.empty-onboard {
  max-width: 650px;
  margin: 50px auto;
}

.mobile-backdrop {
  display: none;
}

.statbox .i {
  float: right;
  color: var(--placeholder);
  margin-top: 4px;
}

.welcome-date {
  font-size: 12px;
  color: var(--sub);
}

.home-progress {
  padding-top: 6px;
}

.home-progress strong {
  font-size: 23px;
  color: var(--ink);
  font-weight: 550;
}

.home-progress .progress {
  margin: 12px 0;
}

.resource-table td:first-child {
  width: 48%;
}

.resource-table .filename {
  overflow-wrap: anywhere;
}

.tag.red {
  color: var(--red);
  background: var(--red-bg);
}

.form-divider {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 5px;
}

.toast.error {
  background: #983b46;
}

.noscript {
  padding: 40px;
}

.panel .panelhead + .empty {
  padding-top: 35px;
}

.settings-content {
  min-height: 300px;
}

@media (max-width: 1200px) {
  .kanban {
    grid-template-columns: repeat(5,minmax(210px,1fr));
  }
  .auth-story {
    padding: 8vh 6vw;
  }
  .auth-story h1 {
    font-size: 35px;
  }
  .content {
    max-width: none;
  }
}

@media (max-width: 950px) {
  .auth-root {
    grid-template-columns: 0.8fr 1fr;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 30px;
  }
  .auth-story .brand {
    margin-bottom: 50px;
  }
  .auth-main {
    padding: 35px;
  }
  .sources {
    display: block;
  }
  .assistant-layout {
    grid-template-columns: 1fr;
  }
  .sources .source-list {
    max-height: 150px;
    overflow: auto;
  }
  .source-check {
    display: inline-flex;
    margin-right: 18px;
    border: 0;
    max-width: 300px;
  }
}

@media (max-width: 700px) {
  .auth-story {
    display: none;
  }
  .auth-main {
    padding: 40px 25px;
    min-height: 100vh;
  }
  .login-logo {
    display: flex !important;
    padding: 0;
    margin-bottom: 35px;
    height: auto;
  }
  .form-grid, .resource-detail-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: auto;
  }
  .auth-card h2 {
    font-size: 24px;
  }
  .kanban {
    display: grid;
    grid-template-columns: 1fr;
    overflow: visible;
  }
  .details-heading {
    flex-wrap: wrap;
  }
  .inline-form {
    flex-wrap: wrap;
  }
  .settings-menu {
    margin-bottom: 10px;
  }
  .member-row {
    flex-wrap: wrap;
  }
  .pagehead .section-actions {
    width: 100%;
  }
  .resource-table table {
    min-width: 700px;
  }
  .modal {
    max-height: 93vh;
  }
  .auth-links {
    flex-wrap: wrap;
  }
  .form-actions .btn {
    flex: 1;
  }
  .statgrid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .statbox strong {
    font-size: 22px;
  }
  .resource-detail-grid > div {
    min-width: 0;
  }
  .home-progress strong {
    font-size: 20px;
  }
}

.resource-preview-frame {
  display: block;
  width: 100%;
  height: min(72vh,820px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
}

.resource-preview.image {
  display: flex;
  justify-content: center;
  overflow: auto;
  max-height: 75vh;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  padding: 12px;
}

.resource-preview.image img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.media-preview {
  display: block;
  width: 100%;
  max-height: 72vh;
  border-radius: 8px;
  background: #111;
}

.reading-page {
  display: flex;
  align-items: end;
  gap: 8px;
}

.reading-page label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.reading-page .input {
  width: 78px;
  padding: 6px 8px;
}

.section-tabs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 24px;
  gap: 7px;
}

.drive-layout {
  display: grid;
  grid-template-columns: 224px minmax(0,1fr);
}

.drive-tree {
  align-self: start;
  max-height: none;
}

.drive-tree summary {
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 12px;
  padding: 5px 10px 16px;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}

.drive-tree-link {
  overflow-wrap: anywhere;
}

.drive-breadcrumb {
  flex-wrap: wrap;
}

.drive-drop {
  border: 2px dashed var(--blue-border);
  border-radius: 12px;
  background: var(--bg);
  padding: 24px;
  text-align: center;
  display: block;
  cursor: pointer;
}

.drive-drop input {
  display: block;
  margin: 16px auto 0;
  max-width: 100%;
}

.drive-drop.dragging {
  background: var(--blue-light);
  border-color: var(--blue);
}

.upload-item {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.upload-item > span {
  display: block;
  margin-top: 6px;
}

.filename svg {
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

.space > .iconbtn {
  flex-shrink: 0;
  color: var(--sub);
}

.space > .iconbtn .i {
  width: 17px;
  height: 17px;
}

.drive-layout > .stack {
  min-width: 0;
}

.drive-layout .toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
}

.drive-layout .toolbar .input {
  min-width: 0;
  flex: 1;
}

.drive-layout .toolbar .btn {
  flex-shrink: 0;
}

.source-check[hidden] {
  display: none !important;
}

@media (max-width: 700px) {
  #profileButton {
    display: inline-flex;
  }
}

/* v0.2.0: shared visual rhythm and a focused file workspace. */

/* Account forms use a compact, centered layout on desktop and mobile. */
.auth-root {
  display: block;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
}

.auth-root .auth-main {
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 24px 32px;
  align-items: flex-start;
}

.auth-root .auth-card {
  width: 100%;
  max-width: 360px;
}

.auth-root .auth-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-root .auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 24px;
}

.auth-root .auth-brand .brandmark {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 25px;
  background: var(--blue);
  color: #fff;
}

.auth-root .auth-header h1 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -.5px;
  line-height: 1.4;
}

.auth-root .auth-header p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.auth-root .auth-form {
  padding: 22px 24px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.auth-root .auth-form .field {
  margin: 0 0 17px;
  gap: 7px;
}

.auth-root .auth-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.auth-root .auth-form label [aria-hidden] {
  display: none;
}

.auth-root .auth-form .input {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: inset 0 1px 0 rgba(31,35,40,.04);
}

.auth-root .auth-form .input:focus {
  outline: 2px solid var(--blue);
  outline-offset: -1px;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px #2468e81a;
}

.auth-root .auth-form .helptext {
  font-size: 12px;
  color: var(--muted);
}

.auth-root .auth-form .btn.primary {
  width: 100%;
  min-height: 40px;
  margin: 3px 0 0;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(31,35,40,.08);
}

.auth-root .auth-form .form-error {
  margin-bottom: 14px;
}

.auth-root .auth-switch {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  color: var(--ink);
}

.auth-root .auth-switch .textbutton {
  display: inline;
  padding: 0;
  font-size: 14px;
}

.auth-root .auth-note {
  margin: 20px 0 0;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.8;
  text-align: center;
}

.auth-root .auth-invite {
  margin: 0 0 17px;
  font-size: 13px;
  color: var(--muted);
}

.auth-root .auth-invite summary {
  cursor: pointer;
  color: var(--blue);
}

.auth-root .auth-invite[open] summary {
  margin-bottom: 14px;
}

.auth-root .auth-invite .field {
  margin-bottom: 0;
}

.auth-root .auth-invite-note {
  margin: 0 0 17px;
  padding: 10px 12px;
  border: 1px solid var(--blue-line);
  border-radius: 6px;
  background: var(--blue-light);
  color: var(--ink-2);
  font-size: 13px;
}

@media (max-width: 480px) {
  .auth-root .auth-main {
    padding: 28px 20px 24px;
  }
  .auth-root .auth-form {
    padding: 20px;
  }
  .auth-root .auth-brand {
    margin-bottom: 20px;
  }
  .auth-root .auth-header {
    margin-bottom: 20px;
  }
}

body {
  background: var(--bg);
}

.sidebar {
  background: var(--sidebar);
}

.brand {
  height: 60px;
}

.navitem {
  border-radius: var(--radius-md);
  transition: background .16s,color .16s;
}

.navitem.active {
  background: var(--fill-2);
  color: var(--ink);
  font-weight: 500;
}

.navitem.active .i {
  color: var(--blue);
}

.space:hover {
  background: var(--fill-2);
}

.topbar {
  border-color: var(--line);
}

.content {
  padding-top: 32px;
}

.pagehead {
  align-items: flex-start;
  margin-bottom: 24px;
}

.pagehead p:empty {
  display: none;
}

.pagehead h1 {
  font-size: 24px;
  letter-spacing: -.3px;
}

.pagehead p {
  line-height: 1.7;
  max-width: 680px;
}

.panel {
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.btn {
  border-color: var(--line-strong);
  border-radius: var(--radius-md);
  min-height: 34px;
  transition: background .15s,border-color .15s;
}

.btn.primary {
  color: #fff;
}

.input {
  border-radius: 8px;
}

.routecard, .meeting-card, .review-card {
  transition: border-color .16s,box-shadow .16s,transform .16s;
}

.routecard:hover, .meeting-card:hover, .review-card:hover {
  border-color: var(--line-strong);
}

.section-tabs .btn, .settings-menu .btn {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}

.section-tabs .btn:hover, .settings-menu .btn:hover {
  background: var(--fill-2);
  color: var(--ink);
}

.section-tabs .btn.active, .settings-menu .btn.active {
  background: var(--fill-2);
  color: var(--ink);
  font-weight: 500;
}

.toolbar {
  gap: 14px;
  margin-bottom: 18px;
}

.toolbar .filters {
  gap: 6px;
}

.filter {
  border-radius: 7px;
  min-height: 34px;
}

.filter:hover {
  background: var(--fill);
  color: var(--ink);
}

.tabs {
  border-bottom-color: var(--line);
}

.tab {
  transition: color .15s,background .15s;
}

.tab:hover {
  color: var(--ink);
}

.grid3 {
  gap: 18px;
}

.routecard {
  padding: 22px;
  gap: 13px;
}

.routecard .meta {
  padding-top: 2px;
}

.focus > .empty {
  padding: 20px 14px 24px;
}

.task-empty {
  min-height: 220px;
  padding: 36px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.task-empty > .i {
  width: 20px;
  height: 20px;
  color: var(--muted);
  background: var(--fill);
  box-sizing: content-box;
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 12px;
}

.task-empty h2 {
  font-size: 16px;
}

.task-empty p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 20px;
  max-width: 440px;
}

.task-empty-actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
}

.kanban {
  gap: 12px;
}

.kanban-col {
  background: var(--fill);
  border: 0;
  border-radius: var(--radius);
  padding: 12px;
  min-height: 280px;
}

.kanban-head {
  color: var(--ink);
  font-weight: 550;
}

.taskcard {
  border-radius: 10px;
  transition: border-color .16s;
}

.taskcard:hover {
  border-color: var(--line-strong);
}

.modal {
  border-radius: var(--radius);
}

.modal-head {
  padding: 18px 23px;
}

.modal-body {
  line-height: 1.65;
}

.modal-foot {
  background: var(--surface);
}

.notice {
  border: 1px solid #f4e4c6;
}

.callout {
  border-radius: var(--radius-md);
}

/* New-team dashboard: one checklist instead of several empty cards. */
.onboarding h2 {
  font-size: 18px;
}

.onboarding > p {
  margin-top: 4px;
}

.onboard-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.onboard-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.onboard-steps li > div {
  flex: 1;
  min-width: 0;
}

.onboard-steps strong {
  font-size: 14px;
  font-weight: 600;
}

.onboard-steps p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.step-mark {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: var(--fill);
}

.onboard-steps li.done .step-mark {
  color: var(--green);
  background: var(--green-bg);
}

.onboard-steps li.done strong {
  color: var(--muted);
  text-decoration: line-through;
}

.step-mark .i {
  width: 15px;
  height: 15px;
}

@media (max-width: 600px) {
  .onboard-steps li {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .onboard-steps li > div {
    flex-basis: calc(100% - 40px);
  }
  .onboard-steps li > .btn {
    margin-left: 40px;
  }
}

.content:has(.drive-page) {
  max-width: none;
  padding: 14px 24px 24px;
}

.drive-page > .pagehead {
  align-items: center;
  margin-bottom: 9px;
  position: relative;
  z-index: 2;
}

.drive-page > .pagehead h1 {
  font-size: 25px;
  line-height: 1.25;
}

.drive-page > .pagehead p:empty {
  display: none;
}

.drive-page > .pagehead p {
  font-size: 12px;
  line-height: 1.4;
  margin-top: 2px;
}

.drive-page > .pagehead .section-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.drive-page > .pagehead .btn {
  min-height: 34px;
  padding: 6px 11px;
}

.drive-search-wrap {
  position: relative;
}

.drive-page > .pagehead .drive-search-trigger {
  width: 36px;
  padding: 6px;
  justify-content: center;
}

.drive-search-trigger .i {
  width: 17px;
  height: 17px;
}

.drive-search-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  z-index: 20;
  width: min(360px,calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(26,47,80,.17);
}

.drive-search-popover[hidden] {
  display: none;
}

.drive-search-popover label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.drive-search-popover > div {
  display: flex;
  gap: 8px;
}

.drive-search-popover .input {
  min-width: 0;
  flex: 1;
}

.drive-layout {
  gap: 0;
  align-items: stretch;
  min-height: calc(100vh - 103px);
  overflow: hidden;
}

.drive-tree {
  min-height: 100%;
  padding: 22px 10px;
  background: var(--bg);
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  position: static;
  overflow: auto;
}

.drive-tree summary {
  color: var(--ink);
  font-size: 15px;
  display: flex;
}

.drive-tree summary::-webkit-details-marker {
  display: none;
}

.drive-tree summary span {
  font-size: 12px;
  color: var(--sub);
  font-weight: 500;
}

.drive-tree-row {
  display: flex;
  align-items: center;
  min-width: 0;
}

.drive-tree-children {
  margin-left: 16px;
  border-left: 1px solid var(--line);
  padding-left: 2px;
}

.drive-tree-toggle, .drive-tree-spacer {
  width: 18px;
  min-width: 18px;
  height: 30px;
  flex: none;
}

.drive-tree-toggle {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sub);
  padding: 0;
}

.drive-tree-toggle:before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .15s;
}

.drive-tree-toggle[aria-expanded="true"]:before {
  transform: rotate(45deg);
}

.drive-tree-toggle:hover, .drive-tree-toggle:focus-visible {
  background: var(--blue-light);
  color: var(--blue);
}

.drive-tree-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 7px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
  min-width: 0;
  flex: 1;
}

.drive-tree-link .i {
  width: 17px;
  height: 17px;
  color: var(--sub);
}

.drive-tree-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-tree-link:hover {
  background: var(--fill);
  color: var(--ink);
}

.drive-tree-link.active {
  background: var(--fill-2);
  color: var(--ink);
  font-weight: 500;
}

.drive-tree-link.active .i {
  color: var(--blue);
}

.drive-tree-file .i {
  color: var(--blue);
}

.drive-tree-file-node .drive-tree-link {
  font-size: 12px;
}

.drive-tree-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drive-tree-icon > .i {
  width: 17px;
  height: 17px;
}

.drive-source-badge {
  position: absolute;
  z-index: 1;
  left: -7px;
  top: -6px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 14px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(25,66,124,.15);
}

.drive-source-badge > .i {
  width: 12px !important;
  height: 12px !important;
  color: inherit !important;
}

.drive-workspace {
  min-width: 0;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}

.drive-workspace-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 12px;
}

.drive-workspace-top .drive-search-wrap {
  flex: none;
}

.drive-workspace-top .drive-search-trigger {
  width: 36px;
  height: 36px;
  padding: 7px;
  justify-content: center;
}

.drive-breadcrumb {
  padding: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 17px;
  border: 0;
}

.drive-breadcrumb a {
  color: var(--muted);
}

.drive-breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-breadcrumb .i {
  width: 16px;
  height: 16px;
  color: var(--sub);
  flex: none;
}

.drive-actionbar {
  display: flex;
  gap: 12px;
  padding: 12px 24px 24px;
}

.drive-actionbar .drive-action {
  width: 190px;
  height: 62px;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 15px;
  box-shadow: none;
}

.drive-actionbar .drive-action .i {
  width: 23px;
  height: 23px;
  color: var(--blue);
}

.drive-main-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 216px;
  flex: 1;
  min-height: 370px;
  border-top: 1px solid var(--line-soft);
}

.drive-content {
  min-width: 0;
  padding: 0;
  background: var(--surface);
}

.drive-inspector {
  min-width: 0;
  border-left: 1px solid var(--line);
  padding: 20px 18px 28px;
}

.drive-inspector h2 {
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  margin-bottom: 14px;
}

.drive-inspector-art {
  height: 142px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}

.drive-inspector-art .i {
  width: 54px;
  height: 54px;
  color: #d99c27;
  stroke-width: 1.5;
}

.drive-inspector-facts {
  display: grid;
  gap: 17px;
}

.drive-inspector-facts > div {
  display: grid;
  gap: 3px;
  font-size: 13px;
}

.drive-inspector-facts span {
  color: var(--sub);
}

.drive-inspector-facts strong {
  font-size: 14px;
  font-weight: 550;
  color: var(--ink);
}

.drive-preview-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 13px;
}

.drive-preview-head h2 {
  font-size: 20px;
  line-height: 1.35;
  margin: 2px 0;
}

.drive-preview-head h2 .drive-source-badge {
  position: relative;
  left: auto;
  top: auto;
  display: inline-flex;
  width: 21px;
  height: 19px;
  margin-right: 7px;
  vertical-align: middle;
  background: var(--blue-light);
  box-shadow: none;
}

.drive-preview-head p {
  font-size: 12px;
  color: var(--muted);
}

.drive-preview-head .textbutton {
  font-size: 12px;
}

.drive-preview-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.drive-preview-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 200px;
  gap: 14px;
  align-items: start;
}

.drive-preview-main, .drive-preview-aside {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.drive-preview-main .panel.padded, .drive-preview-aside .panel.padded {
  padding: 16px;
}

.drive-preview-aside .section-note {
  font-size: 12px;
}

.drive-preview-aside .list-link {
  font-size: 12px;
}

.drive-preview .resource-preview-frame {
  height: min(67vh,760px);
}

.drive-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 1px 12px;
  min-height: 38px;
}

.drive-summary h2 {
  font-size: 20px;
  letter-spacing: -.35px;
  margin: 0;
}

.drive-summary-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.drive-query {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: min(280px,38vw);
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 12px;
  min-width: 0;
}

.drive-query > .i {
  width: 13px;
  height: 13px;
  flex: none;
}

.drive-query > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-query-clear {
  font-size: 17px;
  line-height: 1;
  color: inherit;
  flex: none;
}

.drive-query-clear:hover {
  color: var(--ink);
}

.drive-total {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  background: var(--fill-2);
  border-radius: 20px;
  padding: 4px 10px;
}

.drive-list-panel {
  overflow: visible;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.drive-search-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 17px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.drive-search-state strong {
  font-weight: 600;
}

.drive-table-wrap {
  min-height: 240px;
}

.drive-table, .drive-table-wrap .drive-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
}

.drive-table th {
  font-size: 13px;
  font-weight: 550;
  color: var(--sub);
  background: var(--surface);
  text-align: left;
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.drive-table th:nth-child(2) {
  width: 150px;
}

.drive-table th:last-child {
  text-align: right;
  width: 52px;
}

.drive-table td {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--muted);
  vertical-align: middle;
}

.drive-row-date {
  white-space: nowrap;
}

.drive-row:last-child td {
  border-bottom: 0;
}

.drive-row:hover, .drive-row:focus-within {
  background: var(--bg);
}

.drive-row:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.drive-name {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.drive-file-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  background: var(--blue-light);
  color: var(--blue);
  position: relative;
}

.drive-file-icon.is-folder {
  background: var(--orange-bg);
  color: #d59a37;
}

.drive-file-icon .i {
  width: 19px;
  height: 19px;
}

.drive-name-main {
  min-width: 0;
}

.drive-name-main .filename {
  display: block;
  color: var(--ink);
  font-weight: 550;
  overflow-wrap: anywhere;
  line-height: 1.35;
  padding: 3px 0;
}

.drive-name-main .filename:hover {
  color: var(--blue);
}

.drive-type {
  color: var(--muted);
}

.drive-row-actions {
  text-align: right;
  white-space: nowrap;
}

.drive-inline-action {
  color: var(--muted);
  border: 0;
  background: transparent;
  box-shadow: none !important;
}

.drive-inline-action:hover {
  background: var(--blue-light);
  color: var(--blue);
}

.drive-more {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 7px;
  width: 32px;
  height: 32px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 19px;
  vertical-align: middle;
}

.drive-more:hover, .drive-more:focus-visible {
  background: var(--blue-light);
  color: var(--blue);
}

.drive-list-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--sub);
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
}

.drive-list-foot .btn {
  margin-left: 7px;
}

.drive-empty-row td {
  padding: 0;
  border: 0;
}

.drive-empty-row .empty {
  padding: 27px 20px 33px;
}

.drive-empty-row .empty p:empty {
  display: none;
}

.drive-context-menu {
  position: fixed;
  z-index: 120;
  width: 198px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(27,45,73,.18),0 2px 8px rgba(27,45,73,.07);
}

.drive-context-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  border-radius: 6px;
  padding: 8px 10px;
  text-align: left;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
}

.drive-context-menu button:hover, .drive-context-menu button:focus-visible {
  background: var(--blue-light);
  color: var(--blue);
  outline: 0;
}

.drive-context-menu .i {
  width: 16px;
  height: 16px;
  color: var(--sub);
}

.drive-context-menu button:hover .i, .drive-context-menu button:focus-visible .i {
  color: var(--blue);
}

.drive-context-menu [data-menu-action="cloud-create-document"] .i {
  color: var(--blue);
}

.drive-context-menu [data-menu-action="cloud-create-sheet"] .i {
  color: #27b766;
}

.drive-context-menu [data-menu-action="cloud-create-slides"] .i {
  color: #f47a23;
}

.drive-context-menu [data-menu-action="cloud-new"] .i {
  color: #e5a122;
}

.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;
}

.drive-mobile-meta {
  display: none !important;
}

@media (max-width: 1100px) {
  .drive-layout {
    grid-template-columns: 200px minmax(0,1fr);
  }
  .drive-preview-head {
    display: block;
  }
  .drive-preview-actions {
    justify-content: flex-start;
    margin-top: 9px;
  }
  .drive-preview-layout {
    grid-template-columns: 1fr;
  }
  .drive-preview-aside {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .drive-table th, .drive-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .drive-main-grid {
    grid-template-columns: minmax(0,1fr) 170px;
  }
  .drive-inspector {
    padding: 18px 12px;
  }
  .drive-table th:nth-child(2) {
    width: 124px;
  }
  .drive-table th:last-child {
    width: 44px;
  }
}

@media (max-width: 900px) {
  .drive-main-grid {
    grid-template-columns: 1fr;
  }
  .drive-inspector {
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 14px 18px;
  }
  .drive-inspector h2 {
    margin: 0;
    min-width: 105px;
  }
  .drive-inspector-art {
    display: none;
  }
  .drive-inspector-facts {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .drive-layout {
    grid-template-columns: 180px minmax(0,1fr);
  }
  .drive-tree {
    padding: 12px 6px;
  }
}

@media (max-width: 760px) {
  .drive-preview-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .drive-preview-actions {
    justify-content: flex-start;
  }
  .drive-preview-aside {
    grid-template-columns: 1fr;
  }
  .pagehead h1 {
    font-size: 25px;
  }
  .content:has(.drive-page) {
    padding: 10px 12px 18px;
  }
  .drive-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .drive-tree {
    min-height: 0;
    max-height: 210px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .drive-workspace-top {
    padding: 14px 16px 7px;
  }
  .drive-actionbar {
    padding: 10px 16px 18px;
  }
  .drive-actionbar .drive-action {
    flex: 1;
    width: auto;
  }
  .drive-inspector {
    display: none;
  }
  .drive-table th:nth-child(2), .drive-table td:nth-child(2) {
    display: none;
  }
  .drive-table th:last-child {
    width: 48px;
  }
  .drive-mobile-meta {
    display: block !important;
  }
}

@media (max-width: 600px) {
  .drive-breadcrumb {
    font-size: 15px;
  }
  .drive-actionbar .drive-action {
    height: 54px;
    padding: 10px 12px;
    font-size: 13px;
  }
  .drive-table th, .drive-table td {
    padding: 10px 12px;
  }
  .drive-table th:last-child {
    width: 48px;
  }
  .drive-file-icon {
    width: 33px;
    height: 33px;
    flex-basis: 33px;
  }
  .drive-mobile-meta {
    display: block !important;
  }
  .drive-empty-row td {
    display: table-cell !important;
  }
  .drive-context-menu {
    width: 190px;
  }
}

/* Weekly reports */
.mt8 {
  margin-top: 8px;
}

.week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.week-nav strong {
  min-width: 132px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.week-nav .icon-only {
  width: 34px;
  height: 34px;
  padding: 0;
}

.week-nav .icon-only:disabled {
  color: var(--placeholder);
  cursor: not-allowed;
}

.weekly-hint {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.weekly-hint .i {
  flex: 0 0 auto;
  color: var(--clay-dark);
}

.weekly-form textarea {
  resize: vertical;
  line-height: 1.7;
}

.weekly-form .form-actions {
  flex-wrap: wrap;
}

.weekly-meta {
  margin-bottom: 4px;
}

.weekly-thread {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.weekly-thread h3 {
  font-size: 14px;
}

.weekly-comment {
  margin-top: 12px;
}

.weekly-comment textarea {
  width: 100%;
  resize: vertical;
}

.weekly-comment .form-actions {
  margin-top: 8px;
}

.weekly-member {
  border-top: 1px solid var(--line-soft);
}

.weekly-member > summary, .weekly-member.missing {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
}

.weekly-member > summary {
  list-style: none;
  cursor: pointer;
}

.weekly-member > summary::-webkit-details-marker {
  display: none;
}

.weekly-member > summary:hover {
  background: var(--bg);
}

.weekly-member > summary:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}

.weekly-member > summary > .i:last-child, .weekly-own > summary > .i:last-child {
  flex: 0 0 auto;
  color: var(--sub);
  transition: transform .15s ease;
}

.weekly-member[open] > summary > .i:last-child, .weekly-own[open] > summary > .i:last-child {
  transform: rotate(180deg);
}

.weekly-member .row-main p {
  margin-top: 2px;
  color: var(--sub);
  font-size: 12px;
}

.weekly-member.missing .row-main strong {
  color: var(--muted);
}

.weekly-body {
  padding: 4px 22px 20px 64px;
}

.weekly-review {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.weekly-own > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  list-style: none;
  cursor: pointer;
}

.weekly-own > summary::-webkit-details-marker {
  display: none;
}

.weekly-own > summary h2 {
  flex: 1;
}

.weekly-own > .padded {
  padding-top: 0;
}

.weekly-facts {
  margin-top: 16px;
}

.weekly-facts h3 {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.weekly-fact {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.weekly-fact:last-child {
  border-bottom: 0;
}

.weekly-fact > a, .weekly-fact > span {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-fact p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 2px;
  color: var(--sub);
  font-size: 12px;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.weekly-tips {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.row-main h3 .rowbutton {
  padding: 0;
  font: inherit;
  cursor: pointer;
}

@media (max-width: 700px) {
  .week-nav {
    flex-wrap: wrap;
  }
  .week-nav strong {
    min-width: 0;
  }
  .weekly-member > summary, .weekly-member.missing {
    padding: 12px 16px;
  }
  .weekly-body {
    padding: 4px 16px 16px;
  }
}


/* Invitations: keep actions usable on narrow screens. */
.invitation-row{align-items:flex-start;flex-wrap:wrap}.invitation-row .row-main{min-width:200px}.invitation-row .section-actions{flex-wrap:wrap}#invitationLink{font-size:13px} .invitation-inbox details summary{cursor:pointer}@media(max-width:640px){.invitation-row .section-actions{width:100%}.invitation-row .row-main{min-width:160px}.invitation-inbox .row{padding:18px}}
