/* Noto Sans, self-hosted under the SIL Open Font License in fonts/OFL.txt. */
/* cyrillic-ext */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/noto-sans-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* cyrillic */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/noto-sans-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

/* latin-ext */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/noto-sans-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* latin */
@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 400 600;
  font-stretch: 100%;
  font-display: swap;
  src: url(/static/fonts/noto-sans-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --surface: #FFFFFF;
  --soft: #F7F7F8;
  --ink: #161616;
  --muted: #646464;
  --line: #DEDEE0;
  --accent: #002FA7;
  font-family: "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
  letter-spacing: normal;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: wait; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-weight: 500; }
h1 { font-size: clamp(48px, 5.25vw, 76px); line-height: 1.12; letter-spacing: normal; }
h2 { font-size: 25px; letter-spacing: normal; line-height: 1.3; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 100px; max-width: 1440px; margin: auto; padding: 0 64px; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); text-decoration: none; font-size: 27px; letter-spacing: normal; font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 27px; }
.quiet { border: 0; padding: 8px 0; background: transparent; font-size: 14px; color: var(--muted); }
.quiet:hover { color: var(--accent); }
.landing { display: grid; grid-template-columns: 1.28fr 1fr; max-width: 1312px; margin: 96px auto; padding: 0 32px; }
.intro { padding: 0 70px 0 0; }
.intro h1 { white-space: pre-line; margin-bottom: 28px; max-width: 690px; }
.lead { color: var(--muted); font-size: 19px; line-height: 1.6; max-width: 450px; margin-bottom: 54px; }
.limits { margin: 0; max-width: 450px; }
.limits div { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline; padding: 15px 0; border-top: 1px solid var(--line); }
.limits dt { color: var(--muted); font-size: 14px; }
.limits dd { margin: 0; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: normal; }
.login-card { border-left: 1px solid var(--line); padding: 3px 0 0 44px; }
.login-card>p { font-size: 15px; color: var(--muted); max-width: 350px; margin-bottom: 26px; }
.login-card h2 { margin-bottom: 14px; }
.primary, .secondary { border: 1px solid var(--accent); border-radius: 0; padding: 12px 21px; min-height: 46px; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; background: var(--accent); color: var(--surface); }
.primary:hover { background: var(--ink); border-color: var(--ink); text-decoration: none; }
.secondary { border-color: var(--line); background: var(--surface); color: var(--ink); }
.secondary:hover { border-color: var(--ink); }
.text-button { border: 0; background: transparent; color: var(--accent); padding: 0; font-size: 14px; line-height: 1.5; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { text-decoration-thickness: 2px; }
.login-card .login-note { font-size: 12px; max-width: 345px; margin: 35px 0 0; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.6; }
.field-label { display: block; color: var(--muted); font-size: 13px; margin-top: 26px; }
.login-code { font-size: clamp(30px, 3.1vw, 45px); font-weight: 500; color: var(--accent); line-height: 1.3; letter-spacing: .025em; font-variant-numeric: tabular-nums; margin: 7px 0 14px; white-space: nowrap; }
.login-steps { padding-left: 23px; margin: 29px 0 26px; font-size: 14px; }
.login-steps li { padding-left: 5px; margin-bottom: 10px; }
.login-steps li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.qr-row { display: flex; align-items: center; gap: 20px; }
.qr-row img { flex-shrink: 0; }
.qr-row p { font-size: 13px; color: var(--muted); max-width: 180px; margin: 0; }
.waiting { display: flex; justify-content: space-between; gap: 15px; color: var(--muted); font-size: 12px; margin: 23px 0 13px; }
#countdown { font-variant-numeric: tabular-nums; }
.workspace { max-width: 1312px; margin: 50px auto; padding: 0 32px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; }
.sidebar { border-right: 1px solid var(--line); padding-right: 30px; }
.sidebar h2 { font-size: 19px; margin: 8px 0 30px; overflow-wrap: anywhere; }
.filters { display: flex; flex-direction: column; gap: 0; margin-bottom: 25px; }
.filter { background: transparent; border: 0; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; text-align: left; font-size: 14px; padding: 13px 0; color: var(--muted); }
.filter.active { color: var(--accent); border-bottom-color: var(--accent); }
.filter:hover { color: var(--ink); }
.filter b { font-weight: 400; font-variant-numeric: tabular-nums; }
.sidebar>.primary { padding: 10px 16px; font-size: 13px; }
.storage-panel { margin-top: 44px; }
.storage-panel h3, .retention-panel label { font-size: 13px; font-weight: 400; display: block; margin-bottom: 14px; }
.storage-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.storage-amount b { font-size: 24px; font-weight: 500; letter-spacing: normal; }
.storage-amount span { color: var(--muted); font-size: 12px; }
progress { display: block; height: 3px; width: 100%; background: var(--line); border: 0; border-radius: 0; margin-bottom: 12px; }
progress::-webkit-progress-bar { background: var(--line); }
progress::-webkit-progress-value { background: var(--accent); }
progress::-moz-progress-bar { background: var(--accent); }
.subtle { color: var(--muted); font-size: 13px; line-height: 1.6; }
.storage-panel .subtle, .retention-panel .subtle { font-size: 12px; }
.retention-panel { margin-top: 32px; }
select, input { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 11px 12px; font-size: 14px; max-width: 100%; }
.retention-panel select { width: 100%; margin-bottom: 13px; }
.inbox-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.inbox-heading h1 { font-size: 57px; margin: 0; }
.inbox-hint { padding-bottom: 24px; border-bottom: 1px solid var(--ink); display: flex; align-items: baseline; justify-content: space-between; gap: 30px; }
.inbox-hint p { font-size: 13px; color: var(--muted); max-width: 450px; margin: 0; }
.inbox-hint>span { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.item { padding: 25px 0; border-bottom: 1px solid var(--line); }
.item-title { font-size: 19px; letter-spacing: normal; line-height: 1.5; font-weight: 500; overflow-wrap: anywhere; margin: 0 0 10px; }
.item-title .file-type { display: inline-block; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; margin-left: 12px; vertical-align: middle; }
.item-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.shared-badge { color: var(--accent); }
.item-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; line-height: 1.65; max-height: 300px; overflow-y: auto; margin: 17px 0 0; }
.item-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin-top: 21px; }
.item-actions .delete { margin-left: auto; color: var(--muted); }
.item-actions .delete:hover { color: var(--ink); }
.empty { padding: 65px 0; color: var(--muted); font-size: 15px; }
.empty h2 { color: var(--ink); font-size: 25px; margin-bottom: 14px; }
.empty p { margin-bottom: 23px; font-size: 15px; }
#load-more { margin-top: 28px; }
.shared-view { max-width: 870px; margin: 80px auto; padding: 0 32px; }
.shared-view h1 { font-size: 52px; }
.shared-view .item { border-top: 1px solid var(--ink); margin-top: 40px; }
.initial-loading { max-width: 1312px; margin: 70px auto; padding: 0 32px; color: var(--muted); }
dialog { background: var(--surface); color: var(--ink); padding: 30px; width: min(500px, calc(100% - 32px)); max-height: calc(100% - 64px); border: 1px solid var(--ink); border-radius: 0; text-align: left; }
dialog::backdrop { background: rgb(0 0 0 / .3); }
.dialog-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 25px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; }
.dialog-heading button { padding: 0; font-size: 12px; }
dialog>p { font-size: 14px; color: var(--muted); line-height: 1.65; margin-bottom: 21px; }
dialog label { display: block; font-size: 13px; margin-bottom: 9px; }
dialog select { width: 100%; margin-bottom: 18px; }
dialog .storage-panel { margin-top: 0; }
#share-result { margin-top: 27px; }
#share-url { width: 100%; margin-bottom: 12px; }
#share-expiry { margin: 14px 0 0; }
#revoke-link { display: block; margin-top: 28px; }
.toast { position: fixed; bottom: 28px; left: 32px; right: auto; padding: 14px 20px; max-width: calc(100% - 64px); background: var(--ink); color: var(--surface); font-size: 14px; z-index: 10; }
.toast.error { border-left: 5px solid var(--accent); }
@media (max-width: 1050px) {
  .topbar { padding: 0 32px; }
  .landing { margin-top: 66px; grid-template-columns: 1.1fr 1fr; }
  .intro { padding-right: 40px; }
  .intro h1 { font-size: 54px; }
  .login-card { padding-left: 30px; }
  .login-code { font-size: 30px; }
  .lead { font-size: 17px; }
  .workspace { grid-template-columns: 190px minmax(0,1fr); gap: 34px; }
  .inbox-hint { display: block; }
  .inbox-hint>span { display: block; margin-top: 10px; }
}
@media (max-width: 700px) {
  .topbar { min-height: 77px; padding: 0 22px; }
  .brand { font-size: 24px; }
  .top-actions { gap: 17px; }
  .top-actions .quiet { font-size: 12px; }
  .landing { display: block; margin: 44px 0; padding: 0 22px; }
  .intro { padding: 0; }
  .intro h1 { font-size: clamp(43px, 10vw, 60px); margin-bottom: 23px; }
  .lead { font-size: 16px; margin-bottom: 30px; }
  .limits { max-width: none; margin-bottom: 43px; }
  .limits dt { font-size: 13px; }
  .limits dd { font-size: 22px; }
  .login-card { padding: 29px 0 0; border-left: 0; border-top: 1px solid var(--ink); }
  .login-card>p { max-width: none; }
  .login-code { font-size: clamp(26px, 7.8vw, 42px); }
  .login-note { max-width: none !important; }
  .workspace { display: flex; flex-direction: column; gap: 32px; margin: 26px auto; padding: 0 22px; }
  .sidebar { border: 0; padding: 0; }
  .sidebar h2, .sidebar>.primary, #sidebar-settings { display: none; }
  .filters { flex-direction: row; margin: 0; gap: 26px; }
  .filter { padding: 8px 0 11px; gap: 10px; }
  .inbox-heading { margin-bottom: 19px; }
  .inbox-heading h1 { font-size: 44px; }
  .inbox-heading .secondary { padding: 8px 13px; min-height: 38px; font-size: 12px; }
  .inbox-hint { padding-bottom: 20px; }
  .inbox-hint p { font-size: 13px; }
  .item { padding: 24px 0; }
  .item-title { font-size: 18px; }
  .item-actions { gap: 12px 21px; }
  .item-actions .text-button { font-size: 13px; }
  .item-meta { gap: 7px 16px; font-size: 11px; }
  .item-text { font-size: 15px; }
  .shared-view { margin-top: 45px; padding: 0 22px; }
  .shared-view h1 { font-size: 42px; }
  .toast { left: 22px; max-width: calc(100% - 44px); bottom: 22px; }
}
