:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: #fff;
  --text: #1d1d1f;
  --secondary: #68686d;
  --line: #e5e5ea;
  --fill: #eeeef0;
  --hover: #e8e8ed;
  --glass: rgb(247 247 249 / 82%);
  --glass-border: rgb(255 255 255 / 85%);
  --blue: #0067cf;
  --blue-fill: #e5f0ff;
  --green: #247343;
  --green-fill: #e7f5ec;
  --orange: #a4480b;
  --orange-fill: #fff0e5;
  --red: #bd303b;
  --red-fill: #ffebec;
  --shadow: 0 10px 36px rgb(0 0 0 / 7%), 0 1px 3px rgb(0 0 0 / 6%);
  --sidebar-width: 252px;
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #161617; --surface: #1d1d1f; --text: #f5f5f7; --secondary: #aaaab1;
  --line: #37373b; --fill: #2c2c2e; --hover: #39393d; --glass: rgb(39 39 42 / 88%);
  --glass-border: rgb(255 255 255 / 10%); --blue: #70b4ff; --blue-fill: #23354a;
  --green: #75d49a; --green-fill: #243a2d; --orange: #ffb477; --orange-fill: #483223;
  --red: #ff9ba3; --red-fill: #46292d; --shadow: 0 10px 36px rgb(0 0 0 / 24%), 0 1px 3px rgb(0 0 0 / 16%);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--surface); color: var(--text); }
button, input, select { font: inherit; letter-spacing: 0; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { color: inherit; cursor: pointer; border: 0; }
button:disabled { opacity: .5; cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, select:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
input:focus { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 32px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
.ui { font-size: 21px; flex: 0 0 auto; }
.glass { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow), inset 0 0 0 1px rgb(0 0 0 / 2%); backdrop-filter: blur(24px) saturate(1.5); -webkit-backdrop-filter: blur(24px) saturate(1.5); }
.shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 12px auto 12px 12px; width: var(--sidebar-width); border-radius: 22px; display: flex; flex-direction: column; padding: 24px 12px 12px; z-index: 30; overflow-y: auto; }
.brand { display: inline-flex; gap: 11px; align-items: center; font-size: 27px; font-weight: 700; width: fit-content; }
.sidebar .brand { margin: 0 12px 24px; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--blue-fill); color: var(--blue); display: grid; place-items: center; box-shadow: inset 0 1px 1px rgb(255 255 255 / 70%); }
.brand-icon .ui { font-size: 27px; }
.nav-heading { color: var(--secondary); font-size: 12px; font-weight: 600; margin: 0 13px 8px; }
.apps-heading { margin-top: 29px; }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; min-height: 44px; margin: 3px 0; padding: 9px 12px; border-radius: 11px; font-size: 14px; }
.nav-item > span:first-of-type { flex: 1; }
.nav-item.active { background: var(--blue-fill); color: var(--blue); font-weight: 600; }
.nav-item:hover:not(.active) { background: var(--fill); }
.nav-count { color: var(--secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.word-color { color: var(--blue); } .cell-color { color: var(--green); } .slide-color { color: var(--orange); } .pdf-color { color: var(--red); }
.sidebar-bottom { margin-top: auto; padding-top: 36px; }
.storage-link { display: flex; align-items: center; gap: 9px; color: var(--secondary); font-size: 12px; padding: 14px 10px 20px; }
.storage-link span { flex: 1; }
.storage-link .ui:last-child { font-size: 13px; }
.account-button { display: flex; align-items: center; text-align: left; gap: 10px; width: 100%; background: transparent; border-top: 1px solid var(--line); padding: 16px 7px 4px; }
.avatar { width: 36px; height: 36px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: #e5e6eb; color: #4c4d57; font-size: 14px; font-weight: 600; }
.avatar.small { width: 29px; height: 29px; font-size: 12px; }
.account-label { flex: 1; min-width: 0; }
.account-label strong { display: block; font-size: 13px; }
.account-label > span { display: block; font-size: 11px; color: var(--secondary); }
.account-button > .ui { color: var(--secondary); font-size: 16px; }
.main { margin-left: 280px; min-width: 0; }
.topbar { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 34px 0 24px; }
.topbar-leading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.workspace-name { color: var(--secondary); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar-group { display: flex; gap: 2px; align-items: center; padding: 3px; border-radius: 28px; }
.toolbar-divider { height: 18px; width: 1px; background: var(--line); margin: 0 2px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; padding: 0; flex-shrink: 0; background: transparent; position: relative; }
.icon-button:hover { background: var(--fill); }
.notification-dot { position: absolute; width: 6px; height: 6px; background: var(--blue); border: 1px solid var(--surface); border-radius: 50%; top: 7px; right: 9px; }
.content { padding: 20px 40px 48px 32px; max-width: 1550px; margin: 0 auto; outline: 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 29px; }
.heading-detail { margin-top: 7px; color: var(--secondary); font-size: 13px; }
.heading-actions { display: flex; gap: 9px; align-items: center; flex-shrink: 0; }
.button { display: inline-flex; min-height: 42px; padding: 10px 18px; gap: 8px; border-radius: 24px; background: var(--fill); justify-content: center; align-items: center; font-size: 14px; font-weight: 600; line-height: 1.4; }
.button:hover { background: var(--hover); }
.button.primary { background: #0071e3; color: #fff; box-shadow: inset 0 1px 1px rgb(255 255 255 / 20%), 0 2px 5px rgb(0 113 227 / 16%); }
.button.primary:hover { background: #0064cb; }
.button.danger { background: var(--red-fill); color: var(--red); }
.button .ui { font-size: 18px; }
.section-label { font-size: 13px; font-weight: 600; color: var(--secondary); margin-bottom: 13px; }
.creators { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 35px; }
.creator { display: flex; align-items: center; gap: 15px; text-align: left; padding: 19px 17px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; min-width: 0; min-height: 99px; }
.creator:hover { border-color: var(--secondary); }
.creator-text { min-width: 0; flex: 1; }
.creator strong { font-size: 14px; font-weight: 600; display: block; overflow-wrap: anywhere; }
.creator small { display: block; font-size: 12px; color: var(--secondary); margin-top: 3px; }
.creator > .ui { color: var(--secondary); font-size: 17px; }
.app-icon { --app-color: var(--blue); --app-fill: var(--blue-fill); width: 53px; height: 57px; border-radius: 13px; display: grid; place-items: center; color: var(--app-color); background: var(--app-fill); border: 1px solid color-mix(in srgb, var(--app-color) 15%, transparent); box-shadow: inset 0 1px 2px rgb(255 255 255 / 80%), 0 3px 5px rgb(0 0 0 / 4%); flex-shrink: 0; }
.app-icon .ui { font-size: 31px; }
.app-icon.cell { --app-color: var(--green); --app-fill: var(--green-fill); }
.app-icon.slide { --app-color: var(--orange); --app-fill: var(--orange-fill); }
.app-icon.pdf { --app-color: var(--red); --app-fill: var(--red-fill); }
.browser-toolbar { display: flex; align-items: center; gap: 14px; padding: 0 0 19px; border-bottom: 1px solid var(--line); }
.search-field { display: flex; align-items: center; gap: 9px; background: var(--bg); border: 1px solid transparent; border-radius: 12px; max-width: 340px; flex: 1; padding: 0 12px; height: 42px; min-width: 100px; }
.search-field:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.search-field .ui { font-size: 18px; color: var(--secondary); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; height: 100%; }
.search-field input:focus { outline: 0; }
input::placeholder { color: var(--secondary); }
.browser-controls { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.sort-control { position: relative; display: flex; align-items: center; gap: 6px; color: var(--secondary); font-size: 12px; }
.sort-control .ui { font-size: 15px; }
.sort-control select { appearance: none; cursor: pointer; border: 0; background: transparent; color: var(--secondary); max-width: 150px; padding: 10px 20px 10px 0; font-size: 12px; }
.sort-control > .ui:last-child { pointer-events: none; position: absolute; right: 0; font-size: 12px; }
.segmented { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill); gap: 2px; }
.segmented button { position: relative; border-radius: 9px; z-index: 1; background: transparent; display: grid; place-items: center; min-width: 36px; height: 34px; padding: 0 10px; color: var(--secondary); font-size: 13px; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgb(0 0 0 / 13%); }
.segmented .ui { font-size: 19px; }
.files-summary { display: flex; justify-content: space-between; align-items: center; color: var(--secondary); font-size: 12px; min-height: 48px; gap: 10px; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 25px 22px; }
.file-card { min-width: 0; position: relative; border-radius: 8px; padding: 0 0 8px; }
.file-card:hover { background: var(--bg); }
.file-open { display: block; min-width: 0; }
.file-preview { height: 166px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden; margin-bottom: 12px; }
.paper { position: relative; height: 121px; width: 91px; background: #fff; border: 1px solid #e4e5e8; border-radius: 3px; box-shadow: 0 6px 12px rgb(0 0 0 / 8%); display: grid; place-items: center; color: var(--blue); }
.paper > .ui { font-size: 38px; }
.file-preview.word .paper { color: #0067cf; }
.file-preview.cell .paper { color: var(--green); background: #fbfffc; }
.file-preview.slide .paper { color: var(--orange); width: 133px; height: 83px; background: #fffcfa; }
.file-preview.pdf .paper { color: var(--red); }
:root[data-theme="dark"] .file-preview.cell .paper { color: #247343; }
:root[data-theme="dark"] .file-preview.slide .paper { color: #a4480b; }
:root[data-theme="dark"] .file-preview.pdf .paper { color: #bd303b; }
.file-ext { position: absolute; bottom: 10px; right: 11px; font-size: 10px; font-weight: 600; color: var(--secondary); }
.file-card-name { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; padding: 0 8px; }
.file-card-meta { display: block; color: var(--secondary); font-size: 11px; margin-top: 4px; padding: 0 8px; }
.file-menu-button { position: absolute; top: 9px; right: 9px; width: 32px; height: 32px; background: var(--surface); border: 1px solid var(--line); }
.file-menu-button .ui { font-size: 18px; }
.favorite-marker { position: absolute; top: 17px; left: 14px; color: var(--orange); font-size: 15px; }
.file-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 13px; }
.file-table th { text-align: left; font-size: 11px; color: var(--secondary); font-weight: 500; padding: 0 10px 12px; border-bottom: 1px solid var(--line); }
.file-table th:first-child { width: 49%; }
.file-table th:last-child { width: 50px; }
.file-table td { padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--secondary); }
.file-table tr:hover td { background: var(--bg); }
.file-table td:last-child { text-align: right; }
.file-table .icon-button { width: 32px; height: 32px; }
.file-row-name { display: flex; align-items: center; gap: 13px; min-width: 0; color: var(--text); }
.file-row-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row-name .app-icon { width: 32px; height: 37px; border-radius: 7px; }
.file-row-name .app-icon .ui { font-size: 21px; }
.empty-state, .loading-state { min-height: 235px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 30px 12px; }
.empty-icon { width: 74px; height: 74px; border-radius: 23px; background: var(--bg); color: var(--secondary); display: grid; place-items: center; margin-bottom: 3px; }
.empty-icon .ui { font-size: 35px; }
.empty-state p { color: var(--secondary); max-width: 330px; font-size: 13px; }
.empty-state .button { margin-top: 5px; }
.loading-state { color: var(--secondary); font-size: 13px; }
.app-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.app-tile { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 26px; min-width: 0; }
.app-tile-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.app-tile h2 { font-size: 17px; overflow-wrap: anywhere; }
.app-tile p { font-size: 12px; color: var(--secondary); margin-top: 5px; }
.app-tile-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.app-tile-actions .button { min-height: 38px; padding: 9px 15px; font-size: 13px; }
.status-banner { display: flex; align-items: center; gap: 17px; margin: 38px 0 28px; }
.status-banner > .ui { color: var(--green); font-size: 38px; }
.status-banner p { color: var(--secondary); font-size: 13px; margin-top: 4px; }
.status-list { margin: 0; }
.status-row { padding: 23px 0; display: flex; gap: 18px; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.status-row dt { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.status-row dd { margin: 0; font-size: 13px; color: var(--secondary); text-align: right; }
.service-ok { color: var(--green) !important; }
.service-down { color: var(--red) !important; }
.status-footer { margin-top: 20px; font-size: 12px; color: var(--secondary); }
.sheet { color: var(--text); width: min(430px, calc(100% - 32px)); max-height: calc(100dvh - 48px); margin: auto; padding: 25px; border-radius: 25px; overflow: auto; }
.sheet::backdrop { background: rgb(0 0 0 / 22%); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.modal-header h2 { font-size: 21px; overflow-wrap: anywhere; }
.modal-header .icon-button { width: 32px; height: 32px; background: var(--fill); }
.modal-header .ui { font-size: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.text-input { min-width: 0; width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 11px; }
.kind-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 25px; }
.kind-choice { display: flex; align-items: center; flex-direction: column; justify-content: center; gap: 8px; font-size: 11px; background: transparent; border: 1px solid var(--line); padding: 14px 2px 10px; border-radius: 12px; }
.kind-choice[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-fill); box-shadow: inset 0 0 0 1px var(--blue); }
.kind-choice .app-icon { width: 38px; height: 43px; border-radius: 9px; }
.kind-choice .app-icon .ui { font-size: 24px; }
.modal-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.modal-copy { color: var(--secondary); font-size: 14px; overflow-wrap: anywhere; }
.form-error { color: var(--red); font-size: 13px; margin-top: 10px; }
.form-error:empty { display: none; }
.file-detail { display: flex; align-items: center; gap: 13px; padding: 0 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.file-detail > div { min-width: 0; }
.file-detail strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.file-detail small { display: block; margin-top: 4px; color: var(--secondary); }
.menu-action { width: 100%; display: flex; gap: 12px; align-items: center; border-radius: 10px; background: transparent; min-height: 46px; padding: 10px; text-align: left; font-size: 14px; }
.menu-action:hover { background: var(--fill); }
.menu-action.danger { color: var(--red); }
.switcher-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.switcher-app { display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 18px 4px; border-radius: 12px; font-size: 13px; }
.switcher-app:hover { background: var(--fill); }
.account-detail { display: flex; align-items: center; gap: 12px; padding-bottom: 24px; }
.account-detail strong { display: block; font-size: 15px; }
.account-detail p { font-size: 12px; color: var(--secondary); overflow-wrap: anywhere; }
.settings-label { margin: 10px 0 10px; font-size: 12px; color: var(--secondary); }
.theme-control { display: flex; width: 100%; margin-bottom: 20px; }
.theme-control button { flex: 1; height: 38px; }
.setting { display: flex; gap: 20px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding: 16px 0; font-size: 14px; }
.setting input { appearance: none; width: 44px; height: 27px; border-radius: 20px; background: #b1b1b8; position: relative; margin: 0; cursor: pointer; flex-shrink: 0; }
.setting input::after { content: ""; position: absolute; width: 23px; height: 23px; border-radius: 50%; background: white; top: 2px; left: 2px; box-shadow: 0 1px 3px rgb(0 0 0 / 20%); transition: transform .18s ease; }
.setting input:checked { background: #248745; }
.setting input:checked::after { transform: translateX(17px); }
.setting input:disabled { opacity: .6; }
.account-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.notification-stack { position: fixed; z-index: 45; bottom: 25px; right: 28px; width: min(356px, calc(100vw - 32px)); }
.stack-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 5px 8px; }
.stack-header button { padding: 7px 10px; border-radius: 20px; font-size: 11px; min-height: 30px; background: var(--surface); box-shadow: 0 1px 4px rgb(0 0 0 / 9%); }
.toast-list { position: relative; height: 82px; }
.toast { position: absolute; inset: auto 0 0; min-height: 78px; border-radius: 16px; display: flex; align-items: center; gap: 12px; padding: 15px; transform-origin: center bottom; touch-action: pan-y; }
.toast > .ui { color: var(--green); font-size: 23px; }
.toast.error > .ui { color: var(--red); }
.toast-content { min-width: 0; flex: 1; }
.toast strong { display: block; font-size: 12px; }
.toast p { font-size: 11px; color: var(--secondary); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast .icon-button { height: 28px; width: 28px; }
.toast .icon-button .ui { font-size: 14px; }
.activity-list { display: grid; gap: 0; }
.activity-item { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.activity-item > .ui { color: var(--green); }
.activity-item.error > .ui { color: var(--red); }
.activity-item strong { font-size: 13px; }
.activity-item p { color: var(--secondary); font-size: 12px; overflow-wrap: anywhere; }
.activity-item time { display: block; font-size: 10px; color: var(--secondary); margin-top: 5px; }
.pointer-halo { position: fixed; top: 0; left: 0; width: 30px; height: 30px; z-index: 60; border-radius: 12px; pointer-events: none; opacity: 0; background: rgb(120 120 128 / 8%); border: 1px solid rgb(120 120 128 / 9%); }
.drop-zone { position: fixed; inset: 18px; border: 2px dashed var(--blue); border-radius: 25px; z-index: 80; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; pointer-events: none; }
.drop-zone .ui { font-size: 50px; color: var(--blue); }
.drop-zone strong { font-size: 25px; }
.sidebar-scrim { display: none; }
.mobile-tabs { display: none; }
.sidebar-hidden .sidebar { display: none; }
.sidebar-hidden .main { margin-left: 0; }
.spinner { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; top: 10px; left: 10px; padding: 12px; z-index: 99; background: var(--surface); color: var(--blue); }
.noscript { padding: 20px; }
[data-tip]::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-size: 11px; line-height: 1.4; padding: 6px 9px; border-radius: 6px; background: var(--text); color: var(--surface); white-space: nowrap; pointer-events: none; opacity: 0; z-index: 70; }
[data-tip]:hover::after { opacity: 1; transition: opacity .12s .55s; }
.topbar [data-tip]::after { top: calc(100% + 8px); bottom: auto; }
.topbar .toolbar-group [data-tip]::after { left: auto; right: 0; transform: none; }
.login-page { min-height: 100dvh; background: var(--bg); display: flex; flex-direction: column; }
.login-header { display: flex; justify-content: space-between; align-items: center; padding: 28px 42px; gap: 18px; }
.private-label { display: flex; gap: 7px; align-items: center; color: var(--secondary); font-size: 12px; }
.private-label .ui { font-size: 15px; }
.login-content { width: min(360px, calc(100% - 40px)); margin: auto; padding: 40px 0 70px; text-align: center; }
.login-mark { width: 108px; height: 108px; display: grid; place-items: center; color: var(--blue); background: var(--blue-fill); border: 1px solid color-mix(in srgb, var(--blue) 10%, transparent); border-radius: 28px; box-shadow: 0 8px 20px rgb(0 80 160 / 7%), inset 0 1px 2px rgb(255 255 255 / 85%); margin: 0 auto 30px; position: relative; }
.login-mark > .ui { font-size: 59px; }
.login-key { position: absolute; bottom: -9px; right: -10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); width: 39px; height: 39px; border-radius: 50%; display: grid; place-items: center; color: var(--text); }
.login-key .ui { font-size: 21px; }
.login-content h1 { font-size: 31px; }
.login-owner { margin-top: 12px; color: var(--secondary); font-size: 14px; overflow-wrap: anywhere; }
.login-form { text-align: left; margin-top: 36px; }
.login-form label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.key-input { display: flex; align-items: center; gap: 10px; padding: 0 5px 0 14px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); }
.key-input > .ui { color: var(--secondary); font-size: 18px; }
.key-input:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.key-input input { min-width: 0; height: 49px; border: 0; background: transparent; width: 100%; color: var(--text); font-size: 14px; }
.key-input input:focus { outline: 0; }
.key-input .ui { font-size: 18px; }
.login-submit { width: 100%; margin-top: 22px; height: 47px; }
.login-footer { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 25px; color: var(--secondary); font-size: 11px; }
.login-footer .ui { font-size: 13px; }
@media (min-width: 1500px) { .content { padding-top: 34px; } .file-grid { grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); } }
@media (max-width: 1150px) { :root { --sidebar-width: 222px; } .main { margin-left: 244px; } .content { padding-left: 23px; padding-right: 26px; } .creator { gap: 10px; padding: 16px 12px; } .creator > .ui { display: none; } .creator strong { font-size: 12px; } .creator .app-icon { width: 43px; height: 48px; } }
@media (max-width: 900px) { .creators { gap: 9px; } .creator { flex-direction: column; align-items: flex-start; } .browser-toolbar { flex-wrap: wrap; } .search-field { max-width: none; } .sort-control select { max-width: 128px; } .app-grid { gap: 16px; } .app-tile { padding: 20px; } .app-tile-head { flex-direction: column; align-items: flex-start; } }
@media (max-width: 760px) {
  .sidebar, .sidebar-hidden .sidebar { display: none; }
  .main, .sidebar-hidden .main { margin-left: 0; }
  .topbar { height: 76px; padding: 0 20px 0 13px; }
  .workspace-name { font-size: 12px; }
  .account-shortcut { display: none; }
  .content { padding: 17px 23px 116px; }
  h1 { font-size: 29px; }
  .page-heading { gap: 12px; margin-bottom: 25px; }
  .heading-detail { font-size: 12px; }
  .heading-actions { gap: 6px; }
  .heading-actions .button { padding: 10px 15px; }
  .creators { gap: 10px; margin-bottom: 28px; }
  .creator { min-height: 127px; padding: 13px 10px; gap: 10px; }
  .creator .app-icon { width: 42px; height: 46px; border-radius: 11px; }
  .creator .app-icon .ui { font-size: 27px; }
  .creator strong { font-size: 11px; }
  .creator small { font-size: 10px; }
  .browser-toolbar { gap: 12px; padding-bottom: 16px; }
  .search-field { flex: 1 0 100%; height: 43px; }
  .browser-controls { width: 100%; justify-content: space-between; }
  .segmented button { height: 36px; min-width: 40px; }
  .file-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; }
  .file-preview { height: 153px; }
  .file-preview.slide .paper { width: 108px; height: 72px; }
  .file-card-name { font-size: 12px; padding: 0 3px; }
  .file-card-meta { font-size: 10px; padding: 0 3px; }
  .file-table .size-column, .file-table .date-column { display: none; }
  .file-table th:first-child { width: auto; }
  .file-table td, .file-table th { padding-left: 4px; padding-right: 4px; }
  .file-row-name { gap: 10px; }
  .mobile-tabs { display: flex; position: fixed; z-index: 40; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(370px, calc(100% - 32px)); border-radius: 32px; padding: 5px; }
  .mobile-tabs a, .mobile-tabs button { flex: 1; min-width: 0; padding: 7px 2px; border-radius: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; background: transparent; color: var(--secondary); font-size: 10px; }
  .mobile-tabs .active { color: var(--blue); background: var(--blue-fill); }
  .mobile-tabs .ui { font-size: 22px; }
  .sidebar-open .sidebar { display: flex; inset: 12px auto 12px 12px; width: min(280px, calc(100% - 56px)); z-index: 55; }
  .sidebar-open .sidebar-scrim { display: block; position: fixed; inset: 0; width: 100%; height: 100%; border-radius: 0; z-index: 50; background: rgb(0 0 0 / 25%); backdrop-filter: blur(3px); }
  .app-grid { gap: 14px; margin-top: 24px; }
  .app-tile { padding: 17px 13px; }
  .app-tile h2 { font-size: 14px; }
  .app-tile-head { gap: 15px; margin-bottom: 20px; }
  .app-tile-actions { flex-direction: column; align-items: stretch; }
  .app-tile-actions .button { font-size: 12px; }
  .sheet { padding: 23px; border-radius: 26px; }
  .notification-stack { right: 16px; bottom: calc(95px + env(safe-area-inset-bottom)); }
  .login-header { padding: 22px; }
  .login-header .brand { font-size: 24px; }
  .private-label { font-size: 10px; }
  .login-content { padding-top: 25px; padding-bottom: 40px; }
  [data-tip]::after { display: none; }
}
@media (max-width: 360px) { .content { padding-left: 16px; padding-right: 16px; } h1 { font-size: 24px; } .workspace-name { max-width: 145px; } .creator { padding: 11px 7px; } .creator strong { font-size: 10px; } .heading-actions .button { padding: 10px 12px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } .pointer-halo { display: none; } }
:root[data-reduce-motion="true"] *, :root[data-reduce-motion="true"] *::before, :root[data-reduce-motion="true"] *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
:root[data-reduce-motion="true"] .pointer-halo { display: none; }
:root[data-reduce-transparency="true"] .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); border-color: var(--line); }
:root[data-reduce-transparency="true"] .sheet::backdrop { backdrop-filter: none; }
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) { .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); border-color: var(--secondary); } .sheet::backdrop { backdrop-filter: none; } }
@media (prefers-contrast: more) { :root { --secondary: #444; --line: #767676; } :root[data-theme="dark"] { --secondary: #ddd; --line: #aaa; } .icon-button, .button, .nav-item.active { outline: 1px solid currentColor; } }
@media (hover: none), (pointer: coarse) { .pointer-halo { display: none; } .icon-button { min-width: 44px; min-height: 44px; } }
