:root {
  color-scheme: light;
  --ink: #142b32;
  --muted: #53696e;
  --line: #d8e4e3;
  --surface: #fff;
  --canvas: #f1f6f5;
  --accent: #11665d;
  --accent-dark: #0a5049;
  --accent-pale: #e5f3f0;
  --danger: #9e3138;
  font: 16px/1.55 "Segoe UI", "Malgun Gothic", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink); }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, a:focus-visible, input:focus-visible, #file-input:focus-visible ~ .pane-body {
  outline: 3px solid #429688;
  outline-offset: 2px;
}
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-inner, .shell { width: min(1240px, calc(100% - 56px)); margin-inline: auto; }
.topbar-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; font-weight: 650; letter-spacing: -.02em; }
.brand strong { color: var(--accent-dark); font-weight: 750; }
.brand-mark { display: grid; place-content: center; grid-auto-flow: column; align-items: center; background: #143d40; color: white; border-radius: 10px; width: 38px; height: 38px; font: 700 13px Georgia, serif; }
.brand-mark span { color: #9cdbcb; font-size: 10px; padding: 0 1px; }
.account { display: flex; align-items: center; gap: .65rem; color: var(--muted); font-size: .88rem; }
.shell { padding: 42px 0 64px; }
.login-layout { margin: clamp(24px, 7vh, 86px) auto 0; width: min(970px, 100%); display: grid; grid-template-columns: 1.17fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: 0 20px 54px #143c3a14; }
.intro { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 5vw, 66px); background: radial-gradient(ellipse at 85% 100%, #236c63 0%, #163d42 55%, #102d34 100%); color: #f5fffc; }
.overline { display: block; color: var(--accent-dark); font-size: .7rem; font-weight: 760; letter-spacing: .13em; }
.intro .overline { color: #b4e4d7; }
.intro h1 { margin: .6rem 0 .85rem; font-size: clamp(2.35rem, 5.3vw, 4.5rem); line-height: 1.13; letter-spacing: -.065em; }
.intro p { max-width: 33ch; color: #d5ece9; font-size: 1.05rem; word-break: keep-all; }
.intro-guide { display: flex; align-items: center; gap: .7rem; margin-top: 2rem; }
.intro-guide > span:not(.guide-arrow) { border: 1px solid #84b8ad7a; border-radius: 9px; padding: .45rem .75rem; font-size: .82rem; }
.guide-arrow { color: #b4e4d7; }
.signin { padding: clamp(25px, 5vw, 58px); align-self: center; }
.signin h2 { font-size: 1.55rem; letter-spacing: -.035em; }
.muted { color: var(--muted); font-size: .92rem; }
.signin form { display: grid; gap: .35rem; margin-top: 1.4rem; }
.signin label { font-size: .87rem; font-weight: 700; }
.signin label:not(:first-child) { margin-top: .55rem; }
input:not([type]), input[type=email], input[type=password], input[type=text] { width: 100%; min-height: 44px; border: 1px solid #becfce; border-radius: 9px; padding: .55rem .7rem; background: white; color: var(--ink); }
.password-field { position: relative; }
.password-field input { padding-right: 4.1rem; }
.text-button { border: 0; background: transparent; color: var(--accent-dark); padding: .42rem .55rem; font-size: .83rem; font-weight: 700; }
.password-field .text-button { position: absolute; right: .25rem; top: .25rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 40px; padding: .43rem .75rem; border: 1px solid transparent; border-radius: 9px; font-weight: 690; font-size: .88rem; text-decoration: none; white-space: nowrap; cursor: pointer; }
.primary { background: var(--accent); color: white; }
.primary:hover:not(:disabled) { background: var(--accent-dark); }
.signin .primary { min-height: 46px; justify-content: space-between; margin-top: .7rem; }
.outline { background: white; color: var(--accent-dark); border-color: #bdd5d1; }
.outline:hover { background: var(--accent-pale); }
.quiet { background: transparent; color: var(--accent-dark); }
.quiet:hover:not(:disabled) { background: var(--accent-pale); }
.message { margin-top: .55rem; font-size: .87rem; color: var(--muted); overflow-wrap: anywhere; }
.message:empty { display: none; }
.message.error { color: var(--danger); }
dialog { width: min(480px, calc(100% - 28px)); max-height: calc(100% - 28px); border: 1px solid var(--line); border-radius: 12px; padding: 22px; color: var(--ink); }
dialog::backdrop { background: #102d3480; }
.settings-form { display: grid; gap: .45rem; margin-top: .9rem; }
.settings-form label { font-size: .87rem; font-weight: 650; }
.dialog-actions { display: flex; justify-content: flex-end; gap: .45rem; margin-top: .55rem; flex-wrap: wrap; }
.invite-signup { width: min(490px, 100%); margin-inline: auto; background: white; border: 1px solid var(--line); border-radius: 12px; }
.workspace-active { --canvas: #f0f3f4; --line: #d7dfe2; }
.workspace-active .shell, .workspace-active .topbar-inner { width: min(1580px, calc(100% - 32px)); }
.workspace-active .shell { padding: 14px 0 24px; }
.workspace-active .topbar-inner { min-height: 49px; }
.workspace-active .brand-mark { width: 30px; height: 30px; border-radius: 6px; font-size: 11px; }
.workspace-active .account .button { min-height: 31px; padding-block: .2rem; }
.workspace-heading { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: 10px; }
.workspace h1 { font-size: 1.25rem; line-height: 1.35; letter-spacing: -.04em; }
.pill { background: var(--accent-pale); border-radius: 4px; padding: .15rem .45rem; color: var(--accent-dark); font-size: .74rem; font-weight: 700; white-space: nowrap; }
.panes { display: grid; grid-template-columns: minmax(0, 1fr) 8rem minmax(0, 1fr); gap: 8px; }
.transfer-controls { display: grid; align-self: center; gap: .55rem; }
.transfer-button { min-height: 44px; gap: .35rem; padding-inline: .4rem; border-radius: 5px; font-size: .8rem; font-variant-numeric: tabular-nums; }
.transfer-arrow { font-size: 1.35rem; line-height: 1; }
.transfer-arrow .stacked { display: none; }
.pane {
  --columns: minmax(0, 1fr) 3.8rem 5rem 4.75rem;
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: white;
  border: 1px solid #b9c8cd;
  border-radius: 4px;
  overflow: hidden;
}
.pane:focus-within { border-color: #578d83; }
.pane-header, .pane-footer { padding: 5px 9px; }
.pane-header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; min-height: 38px; background: #f7f9fa; border-bottom: 1px solid var(--line); }
.pane-header .button { min-height: 28px; border-radius: 3px; padding: .1rem .48rem; font-size: .8rem; }
.pane-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; }
.pane-kicker { display: block; color: var(--muted); font-size: .68rem; }
.pane h2 { font-size: .87rem; line-height: 1.3; }
.pane-body { flex: 1 1 auto; height: clamp(250px, calc(100dvh - 245px), 760px); overflow: auto; scrollbar-gutter: stable; }
.pane-footer { display: grid; align-content: center; background: #f7f9fa; border-top: 1px solid var(--line); min-height: 44px; }
.pane-footer strong { display: block; overflow-wrap: anywhere; font-size: .78rem; }
.album-batch { display: grid; gap: .2rem; padding: 6px 9px 9px; border-top: 1px solid var(--line); background: var(--accent-pale); font-size: .8rem; }
.album-batch-header { display: flex; align-items: center; justify-content: space-between; }
.album-batch label { color: var(--muted); }
.album-batch input { min-height: 36px; padding: .25rem .5rem; border-radius: 4px; font-size: 1rem; }
.summary { color: var(--muted); font-size: .78rem; }
.select-all, .entry-name { display: flex; align-items: center; gap: .46rem; min-width: 0; }
.pane input[type=checkbox] { flex: 0 0 auto; inline-size: 15px; block-size: 15px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.pane input[type=checkbox]:disabled { cursor: default; }
.select-all, label.entry-name { cursor: pointer; }
.pane .item.file-entry { cursor: pointer; user-select: none; }
.pane .item.selected { background: #dceee9; box-shadow: inset 2px 0 var(--accent); }
#drop-zone.dragging, .folder-picker-drop.dragging { background: #e2f3ed; outline: 2px dashed var(--accent); outline-offset: -2px; }
.folder-entry { grid-column: 1 / -1; user-select: none; }
.folder-entry .item-open { flex: 1; }
.folder-picker-drop { margin: .75rem 0; padding: 1.35rem .75rem; border: 1px dashed var(--accent); border-radius: 6px; text-align: center; }
.folder-picker-compat { margin-top: .85rem; font-size: .84rem; }
.folder-picker-compat summary { cursor: pointer; }
.folder-picker-compat .button { margin-top: .45rem; }
.browser-bar { display: flex; align-items: center; gap: .25rem; min-height: 31px; padding: .1rem .35rem; border-bottom: 1px solid var(--line); background: #ecf3f2; }
.browser-bar .button { min-height: 24px; padding: 0 .35rem; border-radius: 3px; font-size: .75rem; }
.browser-bar .button[aria-pressed="true"] { background: var(--accent-pale); border-color: var(--accent); }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .1rem; flex: 1; min-width: 0; font-size: .77rem; overflow-wrap: anywhere; }
.breadcrumbs .text-button { white-space: normal; text-align: start; padding: .1rem .2rem; font-size: inherit; }
.crumb-current { padding: .1rem .2rem; font-weight: 700; }
.folder-form { display: flex; gap: .5rem; margin: .5rem .65rem; }
.folder-form input { min-width: 0; }
.pane .message { margin-inline: .7rem; }
.item-list { margin: 0; padding: 0; list-style: none; }
.columns, .pane .item {
  display: grid;
  grid-template-columns: var(--columns);
  align-items: center;
  gap: .35rem;
  padding-inline: .55rem;
  font-size: .79rem;
}
.columns { position: sticky; top: 0; z-index: 1; min-height: 26px; background: #edf1f3; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.columns > :nth-child(3), .file-size { text-align: right; }
.columns > :last-child { text-align: center; }
.pane .item { min-height: 26px; border-bottom: 1px solid #eef2f3; }
.pane .item:nth-child(even):not(.selected) { background: #f7f9fa; }
.pane .item:hover:not(.selected), .pane .item:focus-within:not(.selected) { background: #e9f3f1; }
.pane .item :focus-visible { outline-offset: -1px; }
.filename, .file-extension { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-extension, .file-size { color: var(--muted); font-variant-numeric: tabular-nums; }
.pane .item-icon { flex: 0 0 12px; height: 15px; border: 1px solid #9db3bc; border-radius: 2px; background: #edf5f8; }
.pane .item-icon.folder { position: relative; flex-basis: 17px; height: 12px; margin-top: 3px; border-color: #b37a25; background: #f8cf6b; }
.pane .item-icon.folder::before { position: absolute; content: ''; width: 7px; height: 4px; left: -1px; top: -4px; background: #f8cf6b; border: 1px solid #b37a25; border-bottom: 0; border-radius: 2px 2px 0 0; }
.row-action { min-height: 22px; padding: 0 .15rem; border-radius: 3px; font-size: .74rem; }
.row-action.outline { background: transparent; border-color: transparent; }
.row-action.outline:hover, .row-action.outline:focus-visible { background: #fff; border-color: #bdd5d1; }
.transfers { margin-top: .7rem; padding: .45rem .7rem; border: 1px solid var(--line); background: white; border-radius: 6px; }
.transfers summary { cursor: pointer; font-size: .85rem; font-weight: 700; }
.transfers .item { display: flex; align-items: center; gap: .6rem; min-height: 40px; border-top: 1px solid #edf2f1; }
.transfers .item-icon { flex: 0 0 2rem; text-align: center; color: var(--muted); font-size: .65rem; }
.item-details { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.item-details strong { font-weight: 680; }
.item-details small { display: block; color: var(--muted); }
.item-details .error { color: var(--danger); }
.item-details progress { display: block; width: min(160px, 100%); height: .45rem; margin-top: .25rem; accent-color: var(--accent); }
.item-open { grid-column: 1 / -1; padding: .23rem 0; background: none; border: 0; color: var(--ink); font: inherit; font-weight: 650; text-align: start; }
.item-open:hover { color: var(--accent-dark); text-decoration: underline; }
.empty { text-align: center; padding: 22px 10px; color: var(--muted); font-size: .88rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 760px) {
  .account > span { display: none; }
  .account { gap: .1rem; }
  .account .button { padding-inline: .35rem; font-size: .76rem; }
  .topbar-inner, .shell { width: calc(100% - 28px); }
  .shell { padding-top: 25px; }
  .login-layout, .panes { grid-template-columns: 1fr; }
  .transfer-controls { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .transfer-arrow .across { display: none; }
  .transfer-arrow .stacked { display: inline; }
  .login-layout { margin-top: 10px; }
  .intro-guide { margin-top: 1.1rem; }
  .pane-body { height: clamp(190px, 39vh, 350px); }
  .pane .item { min-height: 31px; }
}
@media (max-width: 520px) {
  .workspace-active .topbar-inner { gap: .4rem; }
  .workspace-active .brand { gap: .35rem; white-space: nowrap; }
  .workspace-active .brand-name { display: none; }
}
@media (max-width: 390px) {
  .brand { font-size: .82rem; }
  .pane-header, .pane-footer { padding-inline: 12px; }
  .pane { --columns: minmax(0, 1fr) 2.4rem 3.6rem 3.65rem; }
  .columns, .pane .item { gap: .25rem; }
  .account > span { display: none; }
}
