:root {
  color-scheme: dark;
  font: 16px/1.5 "Segoe UI", system-ui, sans-serif;
  color: #f4f4f5;
  --muted: #b3b4bc;
  --line: #ffffff27;
  --panel: #1b1c20e8;
  --paper: #f4f4f5;
  --ink: #131417;
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; background: #101113; }
[hidden] { display: none !important; }
#background { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
body { isolation: isolate; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 2px solid #ececf3; outline-offset: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.topbar { width: min(1520px, 92%); height: 100px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: .65em; font-size: clamp(1.12rem, 2.4vw, 1.9rem); letter-spacing: -.025em; white-space: nowrap; line-height: 1; }
.brand .icon { width: 2em; height: 1.65em; }
.nav { display: flex; align-items: center; gap: clamp(12px, 3vw, 42px); }
.nav button:not(.button), .nav .lang { background: transparent; border: 0; color: var(--muted); padding: 8px 0; }
.nav a:hover, .nav button:hover { color: white; }
.nav select.lang { width: auto; font-size: .87rem; font-weight: 650; padding-inline: .3rem; cursor: pointer; }
.button { border: 1px solid #ffffff38; border-radius: 12px; background: #ffffff08; color: var(--paper); display: inline-flex; justify-content: center; align-items: center; gap: .55em; padding: .54em .88em; min-height: 42px; font-weight: 560; white-space: normal; transition: background .2s, border-color .2s; }
.button:hover { background: #ffffff17; border-color: #ffffff77; }
.primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.primary:hover { background: #d8d9de; color: var(--ink) !important; }
.danger { color: #ffd1d1; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(2.05rem, 5vw, 4rem); line-height: 1.08; font-weight: 580; letter-spacing: -.055em; overflow-wrap: anywhere; }
h2 { font-size: 1.24rem; font-weight: 620; line-height: 1.25; }
.muted { color: var(--muted); }
.hero { margin: clamp(44px, 8vh, 94px) auto 0; text-align: center; width: min(940px, 90%); }
.hero h1 { font-size: clamp(2.7rem, 6.5vw, 6.1rem); font-weight: 350; letter-spacing: .08em; line-height: 1.08; }
.slogan { margin: 18px 0 clamp(44px, 8vh, 84px); color: #e2e2e7; font-size: clamp(.72rem, 1.5vw, 1.12rem); text-transform: uppercase; letter-spacing: .32em; }
#preview-storage { margin: 0 auto 14px; font-size: .9rem; }
.drop { border: 1px dashed #f1f2f493; border-radius: 28px; background: #26272c60; padding: clamp(28px, 5vh, 52px) 16px; display: grid; justify-items: center; gap: .55rem; text-align: center; transition: background .2s, border-color .2s; }
.drop[data-over] { border-color: white; background: #b4b8d134; }
.drop > .icon { width: 5rem; height: 4.15rem; margin-bottom: .4rem; color: #dedee3; }
.drop h2 { font-size: clamp(1.35rem, 2.7vw, 2.1rem); }
.drop p { color: #c5c5cd; }
.drop .actions { justify-content: center; margin-top: .9rem; }
.drop .button { border-radius: 2rem; padding-inline: 1.45rem; }
.guest-result { margin-top: 18px; text-align: start; }
.features { display: flex; justify-content: center; align-items: center; gap: .7rem 0; flex-wrap: wrap; padding: clamp(30px, 8vh, 80px) 0; }
.features span { display: inline-flex; align-items: center; gap: .7rem; padding: 0 1.4em; border-right: 1px solid var(--line); }
.features span:last-child { border: 0; }
.features .icon { font-size: 1.55rem; }
.auth { width: min(490px, 92%); margin: 8vh auto; text-align: center; }
.auth h1 { margin-bottom: .55rem; }
.auth .card { margin-top: 28px; text-align: start; }
.card, .file-panel { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: clamp(15px, 3vw, 28px); }
.stack { display: grid; gap: 15px; }
.stack label { display: grid; gap: .35rem; }
input:not([type=checkbox]):not([type=file]):not([type=range]), select { min-height: 42px; padding: .54em .75em; border: 1px solid var(--line); border-radius: 10px; background: #111215; color: inherit; width: 100%; }
input[type=checkbox], input[type=range], progress { accent-color: white; }
input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }
.workspace { width: min(1320px, 92%); margin: 36px auto 90px; }
.workspace-top { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; flex-wrap: wrap; }
.workspace-top p { margin-top: .5rem; }
.actions, .tabs, .breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tabs { gap: 4px; margin: 0 0 18px; }
.tab { background: none; color: var(--muted); border: 1px solid transparent; border-radius: 10px; padding: .55em .85em; min-height: 42px; }
.tab[aria-selected=true] { border-color: var(--line); background: #ffffff0b; color: white; }
.folder-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.folder-top form { display: flex; gap: 8px; }
.folder-top form input { width: min(38vw, 215px) !important; }
.breadcrumbs .crumb { background: transparent; color: white; border: 0; padding: .65em .1em; text-align: left; overflow-wrap: anywhere; }
.crumb + .crumb::before { content: "/"; color: #8b8c96; padding: 0 6px; }
.library-drop { margin-bottom: 16px; padding: 12px; }
.library-drop > .icon { display: none; }
.library-drop h2 { font-size: 1rem; }
.library-drop p, .library-drop .actions { margin: 0; }
.rows { display: grid; }
.row { display: grid; grid-template-columns: auto minmax(130px, 1fr) auto auto; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding: 12px 0; min-height: 61px; }
.row:first-child { border-top: 0; }
.row.client { grid-template-columns: minmax(130px, 1fr) auto auto; }
.row .item { display: flex; gap: 10px; align-items: center; text-align: left; overflow-wrap: anywhere; color: white; font-weight: 570; padding: 0; border: 0; background: none; min-width: 0; }
.item .icon { color: #d1d2da; width: 22px; height: 22px; }
.row .meta { font-size: .86rem; color: var(--muted); min-width: 110px; white-space: nowrap; }
.row .actions { justify-content: end; }
.row .button { min-height: 38px; }
.toolbar { border-bottom: 1px solid var(--line); margin-bottom: 5px; padding-bottom: 12px; }
.empty { padding: 3rem 0; text-align: center; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 12px; margin-bottom: 18px; }
.metric strong { display: block; margin-top: .55em; font-size: 1.45rem; }
.links-list { display: grid; gap: 12px; }
.links-list .card { display: grid; gap: .5rem; }
.link-title { overflow-wrap: anywhere; }
.new-link { display: grid; gap: 14px; max-width: 490px; }
.audit { margin-top: 20px; }
.audit .row { grid-template-columns: minmax(70px, .75fr) minmax(70px, 1fr) auto; }
.audit .row span { overflow-wrap: anywhere; }
.transfers { z-index: 2; position: fixed; bottom: 14px; right: 14px; width: min(410px, calc(100% - 28px)); max-height: 46svh; overflow: auto; background: #1c1d22; border: 1px solid #ffffff47; border-radius: 15px; padding: 15px; box-shadow: 0 10px 40px #0008; }
.transfer { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.transfer span { overflow-wrap: anywhere; }
progress { display: block; width: 100%; height: .65rem; margin: .65rem 0; }
dialog { width: min(540px, calc(100% - 26px)); color: inherit; background: #1d1e23; border: 1px solid #ffffff70; border-radius: 18px; padding: clamp(16px, 3vw, 28px); max-height: 88svh; }
dialog::backdrop { background: #000b; }
dialog:has(.media) { width: min(880px, calc(100% - 26px)); }
.dialog-top { display: flex; justify-content: space-between; align-items: start; margin-bottom: 15px; gap: 12px; }
.dialog-top h2 { overflow-wrap: anywhere; }
.media img, .media video, .media iframe, .media audio { width: 100%; max-height: 65svh; border: 0; object-fit: contain; }
.media iframe { height: 58svh; }
.media canvas { display: block; width: 100%; height: 85px; cursor: pointer; }
.media input[type=range] { width: 100%; margin: 12px 0; }
.media .actions { margin-bottom: 10px; }
#notice { position: fixed; z-index: 3; bottom: 18px; left: 18px; max-width: min(550px, calc(100% - 36px)); color: #141519; background: #f4f4f6; padding: .7rem 1rem; border-radius: 10px; box-shadow: 0 7px 20px #0004; }
#notice:empty { display: none; }
@media (max-width: 670px) {
  .topbar { height: auto; min-height: 74px; gap: 10px; }
  .nav { gap: 12px; }
  .nav [data-wide] { display: none; }
  .nav .button { font-size: .85rem; }
  .nav select.lang { font-size: .72rem; max-width: 92px; }
  .hero { margin-top: 8vh; }
  .hero h1 { letter-spacing: .035em; font-size: clamp(2.3rem, 9vw, 4.2rem); }
  .slogan { letter-spacing: .19em; }
  .features { display: grid; grid-template-columns: 1fr 1fr; text-align: left; gap: 13px; }
  .features span { font-size: .84rem; border: 0; padding: 0; }
  .workspace { margin-top: 20px; }
  .row, .row.client { grid-template-columns: auto minmax(0,1fr) auto; gap: 6px 9px; }
  .row.client { grid-template-columns: minmax(0,1fr) auto; }
  .row .meta { grid-row: 2; grid-column: 2; min-width: 0; white-space: normal; }
  .row.client .meta { grid-column: 1; }
  .row .actions { grid-row: 1 / 3; grid-column: 3; }
  .row.client .actions { grid-column: 2; }
  .row .button { min-width: 39px; }
  .compact { display: none; }
  .audit .row { grid-template-columns: 1fr 1fr; }
  .audit .row .meta { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
