:root {
  color-scheme: light;
  --bg: #f8fafd;
  --sidebar: #f3f6fb;
  --surface: #ffffff;
  --soft: #edf2fa;
  --soft-strong: #d3e3fd;
  --text: #1f1f1f;
  --muted: #5f6368;
  --line: #dadce0;
  --blue: #1a73e8;
  --blue-soft: #c2e7ff;
  --green: #188038;
  --red: #d93025;
  --yellow: #fbbc04;
  --shadow: 0 1px 2px rgba(60, 64, 67, 0.18), 0 1px 3px rgba(60, 64, 67, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Google Sans", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  color: inherit;
}

button {
  cursor: pointer;
}

.hidden,
.search-hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.login-panel,
.public-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: linear-gradient(135deg, #f8fafd 0%, #edf2fa 100%);
}

.login-panel > *,
.public-card {
  width: min(430px, 100%);
}

.public-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.brand-block.compact {
  margin-bottom: 12px;
}

.drive-logo {
  width: 38px;
  height: 34px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}

.drive-logo.large {
  width: 54px;
  height: 47px;
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  font-weight: 500;
}

h1 {
  font-size: 36px;
  line-height: 1.05;
}

h2 {
  font-size: 24px;
  line-height: 1.2;
}

h3 {
  font-size: 18px;
  line-height: 1.25;
}

.login-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 11px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14);
}

.login-form button,
.dialog-card > button {
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  min-height: 40px;
}

.form-error {
  min-height: 22px;
  color: var(--red);
  font-weight: 600;
}

.drive-layout {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 64px 1fr;
  background: var(--bg);
}

.app-topbar {
  display: grid;
  grid-template-columns: 236px minmax(280px, 836px) minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 18px;
  min-width: 0;
}

.product-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product-logo strong {
  font-size: 22px;
  font-weight: 500;
  color: #3c4043;
}

.search-shell {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #edf2fa;
  border-radius: 24px;
  padding: 0 18px;
  color: var(--muted);
}

.search-shell input {
  border: 0;
  padding: 0;
  background: transparent;
  font-size: 15px;
  box-shadow: none;
}

.search-shell input:focus {
  box-shadow: none;
}

.search-icon {
  width: 18px;
  height: 18px;
  border: 2px solid #3c4043;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}

.search-icon::after {
  content: "";
  width: 8px;
  height: 2px;
  background: #3c4043;
  position: absolute;
  right: -6px;
  bottom: -3px;
  transform: rotate(45deg);
  border-radius: 2px;
}

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

.top-icon,
.avatar,
.icon-button {
  border: 0;
  background: transparent;
  min-width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #3c4043;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.top-icon.wide {
  width: auto;
  min-width: 42px;
  border-radius: 18px;
  font-size: 12px;
}

.top-icon:hover,
.avatar:hover,
.icon-button:hover {
  background: #e8eaed;
}

.avatar {
  background: #5f7f40;
  color: #fff;
  border: 2px solid #d93025;
  font-weight: 600;
}

.drive-body {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 48px;
  min-height: 0;
}

.sidebar {
  background: var(--sidebar);
  padding: 8px 16px 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.new-button {
  width: 102px;
  min-height: 56px;
  border: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 500;
  margin: 0 0 4px;
}

.plus-mark {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.plus-mark::before,
.plus-mark::after {
  content: "";
  background: #202124;
  position: absolute;
  border-radius: 2px;
}

.plus-mark::before {
  width: 18px;
  height: 2px;
  top: 8px;
  left: 0;
}

.plus-mark::after {
  width: 2px;
  height: 18px;
  top: 0;
  left: 8px;
}

.sidebar-upload {
  width: 102px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: #0b57d0;
  background: #fff;
  font-size: 13px;
}

.sidebar-upload input {
  display: none;
}

.nav-list {
  display: grid;
  gap: 2px;
}

.nav-item {
  border: 0;
  background: transparent;
  min-height: 32px;
  padding: 0 14px 0 18px;
  border-radius: 0 18px 18px 0;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #202124;
  text-align: left;
}

.nav-item.active {
  background: var(--blue-soft);
  color: #001d35;
}

.nav-item:hover {
  background: #e8eaed;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 auto;
  position: relative;
}

.nav-svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #3c4043;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-item.active .nav-svg {
  stroke: #001d35;
}

.home-icon::before,
.drive-nav-icon::before,
.project-icon::before,
.computer-icon::before,
.share-icon::before,
.recent-icon::before,
.star-icon::before,
.spam-icon::before,
.bin-icon::before,
.admin-icon::before,
.storage-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid #3c4043;
  border-radius: 3px;
}

.home-icon::before {
  transform: rotate(45deg);
  border-radius: 2px;
  border-left-color: transparent;
  border-top-color: transparent;
}

.share-icon::after {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  background: #3c4043;
  border-radius: 50%;
  left: 2px;
  top: 3px;
  box-shadow: 9px 0 0 #3c4043, 5px 9px 0 #3c4043;
}

.recent-icon::before {
  border-radius: 50%;
}

.recent-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 2px;
  background: #3c4043;
  left: 8px;
  top: 8px;
  transform-origin: left center;
  transform: rotate(-90deg);
}

.star-icon::before {
  clip-path: polygon(50% 0,61% 34%,98% 35%,68% 55%,79% 91%,50% 70%,21% 91%,32% 55%,2% 35%,39% 34%);
  background: #3c4043;
  border: 0;
}

.bin-icon::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 2px;
  background: #3c4043;
  left: 3px;
  top: 1px;
}

.quota-box {
  margin: 8px 18px 0;
  display: grid;
  gap: 10px;
}

.storage-title {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #202124;
}

.quota-track {
  height: 4px;
  background: #dadce0;
  border-radius: 999px;
  overflow: hidden;
}

.quota-track span {
  display: block;
  height: 100%;
  width: 0;
  background: #1a73e8;
}

.quota-text,
.account-email {
  color: #3c4043;
  font-size: 13px;
}

.storage-button {
  width: 166px;
  min-height: 38px;
  margin: 2px 18px 0;
  border: 1px solid #747775;
  border-radius: 19px;
  background: transparent;
  color: #0b57d0;
  font-weight: 500;
}

.account-email {
  margin: auto 18px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace {
  min-width: 0;
  background: var(--surface);
  border-radius: 18px 0 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.workspace-head {
  min-height: 82px;
  padding: 20px 20px 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip-button,
.view-chip {
  min-height: 34px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 17px;
  padding: 0 14px;
  color: #3c4043;
}

.chip-button:hover,
.view-chip:hover {
  background: #f1f3f4;
}

.view-chip.active {
  background: #c2e7ff;
  border-color: #7bb9de;
  color: #001d35;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  margin-top: 10px;
  color: var(--muted);
}

.crumb {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
}

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

.drop-zone {
  flex: 1;
  padding: 0 20px 28px;
  min-height: 0;
  overflow: auto;
}

.drop-zone.dragging {
  background: rgba(26, 115, 232, 0.06);
  outline: 3px solid rgba(26, 115, 232, 0.24);
  outline-offset: -8px;
}

.status-line {
  min-height: 24px;
  color: var(--muted);
}

.content-view {
  min-width: 0;
}

.drive-home {
  display: grid;
  gap: 18px;
}

.suggest-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.suggest-section h3 {
  font-size: 18px;
}

.section-toggle {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #202124;
}

.file-section {
  margin-top: 10px;
}

.suggested-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 16px;
  max-width: 860px;
}

.suggested-folder {
  min-height: 56px;
  border: 0;
  background: var(--soft);
  border-radius: 12px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.suggested-folder strong {
  display: block;
  font-weight: 500;
}

.suggested-folder small {
  color: var(--muted);
}

.more-dot {
  color: transparent;
  width: 18px;
  height: 18px;
  position: relative;
}

.more-dot::before {
  content: "";
  position: absolute;
  right: 7px;
  top: 3px;
  width: 3px;
  height: 3px;
  background: #202124;
  border-radius: 50%;
  box-shadow: 0 6px 0 #202124, 0 12px 0 #202124;
}

.folder-glyph {
  width: 22px;
  height: 16px;
  border-radius: 3px;
  background: #3c4043;
  display: inline-block;
  position: relative;
}

.folder-glyph::before {
  content: "";
  width: 10px;
  height: 5px;
  background: #3c4043;
  border-radius: 2px 2px 0 0;
  position: absolute;
  top: -4px;
  left: 2px;
}

.drive-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.drive-table th,
.drive-table td {
  height: 48px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drive-table th {
  height: 40px;
  color: #202124;
  font-weight: 500;
  font-size: 13px;
}

.drive-table tr:hover td {
  background: #f8fafd;
}

.suggested-table th:nth-child(1),
.suggested-table td:nth-child(1) {
  width: 30%;
}

.suggested-table th:nth-child(2),
.suggested-table td:nth-child(2) {
  width: 30%;
}

.suggested-table th:nth-child(3),
.suggested-table td:nth-child(3) {
  width: 14%;
}

.suggested-table th:nth-child(4),
.suggested-table td:nth-child(4) {
  width: 17%;
}

.suggested-table th:nth-child(5),
.suggested-table td:nth-child(5) {
  width: 9%;
}

.file-table {
  min-width: 900px;
}

.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.drive-card {
  min-height: 156px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.drive-card:hover {
  background: #f8fafd;
}

.card-name {
  min-height: 34px;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.name-cell {
  min-width: 260px;
}

.item-name {
  border: 0;
  background: transparent;
  padding: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}

.file-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-icon {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 12px;
  vertical-align: middle;
  background: #5f6368;
  position: relative;
}

.file-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 10px;
  height: 7px;
  background: rgba(255,255,255,0.9);
  clip-path: polygon(0 100%, 35% 45%, 55% 70%, 72% 34%, 100% 100%);
}

.file-icon.pdf,
.file-icon.image {
  background: #ea4335;
}

.file-icon.sheet {
  background: #34a853;
}

.file-icon.doc {
  background: #4285f4;
}

.file-icon.text {
  background: #5f6368;
}

.owner-badge {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  border-radius: 50%;
  background: #f29900;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.location-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  margin-right: 8px;
  border: 2px solid #3c4043;
  border-radius: 2px;
  vertical-align: -2px;
}

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

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.row-actions button,
.row-actions a {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #3c4043;
  padding: 0 9px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.row-actions button:hover,
.row-actions a:hover {
  background: #e8eaed;
}

.empty-inline,
.empty-row td,
.empty-state {
  color: var(--muted);
}

.empty-inline {
  padding: 18px 0;
}

.empty-state {
  padding: 54px 24px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.empty-state p {
  margin: 8px 0 0;
}

.view-more {
  justify-self: start;
  border: 0;
  background: transparent;
  color: #0b57d0;
  font-weight: 500;
  padding: 8px 32px;
}

.right-rail {
  background: var(--surface);
  border-left: 1px solid #eef0f2;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 18px;
  padding-top: 18px;
}

.right-rail button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #0b57d0;
  font-weight: 700;
}

.right-rail button:hover {
  background: #e8eaed;
}

.right-rail span {
  width: 4px;
  height: 52px;
  border-radius: 999px;
  background: repeating-linear-gradient(to bottom, #9aa0a6 0 8px, transparent 8px 20px);
  margin-top: auto;
  margin-bottom: 26px;
}

dialog {
  border: 0;
  padding: 0;
  border-radius: 12px;
  width: min(480px, calc(100vw - 28px));
  box-shadow: 0 12px 42px rgba(32,33,36,0.24);
}

dialog::backdrop {
  background: rgba(32,33,36,0.35);
}

.dialog-card {
  display: grid;
  gap: 15px;
  padding: 20px;
  background: #fff;
}

.dialog-card header,
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.share-result {
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  padding: 14px 0;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.metric-card span {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
}

.metric-card strong {
  display: block;
  margin-top: 7px;
  font-size: 23px;
  font-weight: 500;
}

.metric-card.wide {
  grid-column: span 2;
}

.section-head {
  padding: 17px 0 8px;
}

.compact-table {
  min-width: 650px;
}

.public-meta {
  margin-top: 14px;
}

.file-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.file-card span {
  color: var(--muted);
}

.context-menu {
  position: fixed;
  z-index: 2000;
  width: 220px;
  max-width: calc(100vw - 16px);
  padding: 6px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(60, 64, 67, 0.24);
}

.context-menu button {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #202124;
  padding: 0 10px;
  text-align: left;
  display: flex;
  align-items: center;
}

.context-menu button:hover,
.context-menu button:focus {
  background: #f1f3f4;
  outline: none;
}

.utility-card {
  max-height: min(760px, calc(100vh - 40px));
}

.utility-body,
.utility-stack {
  display: grid;
  gap: 14px;
}

.utility-body p,
.tool-surface p {
  margin: 0;
  color: var(--muted);
}

.action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.action-row.centered {
  justify-content: center;
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(110px, auto) minmax(0, 1fr);
  gap: 10px 14px;
}

.detail-grid span {
  color: var(--muted);
}

.detail-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 500;
}

.account-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.large-avatar {
  width: 54px;
  height: 54px;
  font-size: 22px;
}

.app-launcher {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}

.app-launcher button,
.utility-list button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #202124;
}

.app-launcher button {
  min-height: 64px;
  padding: 10px;
}

.utility-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.utility-list button {
  min-height: 52px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.utility-list button:hover,
.app-launcher button:hover {
  background: #f1f3f4;
}

.utility-list button.done strong {
  text-decoration: line-through;
  color: var(--muted);
}

.utility-list span {
  color: var(--muted);
  font-size: 13px;
}

.calendar-today {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafd;
  font-size: 18px;
}

.note-box {
  width: 100%;
  min-height: 180px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.task-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tool-surface {
  display: grid;
  gap: 16px;
}

.module-page {
  display: grid;
  gap: 16px;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.module-card {
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  text-align: left;
}

.module-card:hover {
  background: #f8fafd;
  border-color: #c9d3df;
}

.module-card strong,
.help-card h3,
.settings-panel h3 {
  display: block;
  font-weight: 500;
}

.module-card small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
  white-space: normal;
}

.module-icon {
  width: 38px;
  height: 38px;
  padding: 7px;
  border-radius: 8px;
  background: #e9f7f6;
  fill: none;
  stroke: #0f766e;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 14px;
}

.settings-panel,
.help-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.settings-panel.full-span {
  grid-column: 1 / -1;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-pill {
  min-height: 30px;
  border-radius: 15px;
  padding: 6px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  color: #3c4043;
  background: #fff;
}

.feature-pill.enabled {
  border-color: #9ad3c9;
  background: #e9f7f6;
  color: #0f5f59;
}

.feature-pill.locked {
  color: var(--muted);
  background: #f8fafd;
}

.segmented-row {
  display: inline-flex;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.segmented-row button {
  min-height: 34px;
  border: 0;
  background: #fff;
  padding: 0 16px;
  color: #3c4043;
}

.segmented-row button.active {
  background: #c2e7ff;
  color: #001d35;
}

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

.help-grid,
.calendar-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.help-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.calendar-hero {
  min-height: 160px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f766e, #0b1220);
  color: #fff;
  padding: 20px;
  display: grid;
  align-content: end;
  gap: 6px;
}

.calendar-hero span {
  color: #b7f4ed;
  font-size: 15px;
}

.calendar-hero strong {
  font-size: 28px;
  line-height: 1.1;
  font-weight: 500;
}

.page-list {
  max-height: none;
}

.page-note {
  min-height: 320px;
}

@media (max-width: 960px) {
  .app-topbar {
    grid-template-columns: 190px minmax(0, 1fr) auto;
  }

  .top-actions {
    display: flex;
  }

  .drive-body {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    padding-right: 8px;
  }
}

@media (max-width: 720px) {
  .drive-layout {
    grid-template-rows: auto 1fr;
  }

  .app-topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .top-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .drive-body {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: start;
    gap: 10px;
    padding: 10px;
  }

  .nav-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quota-box,
  .storage-button,
  .account-email {
    display: none;
  }

  .workspace {
    border-radius: 0;
  }

  .workspace-head {
    flex-direction: column;
    padding: 16px;
  }

  .drop-zone {
    padding: 0 14px 20px;
  }

  .suggested-grid {
    grid-template-columns: 1fr;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}
