:root {
  color-scheme: light;
  --ink: #152d24;
  --muted: #586a60;
  --green: #174a35;
  --lime: #d8edae;
  --rule: #d9dfd5;
  --paper: #fafbf7;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  font-family: Inter, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: #f2f4ed;
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button, input, select, a, summary { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #5b8c4b; outline-offset: 3px; }
svg { flex: none; vertical-align: middle; }
h1, h2, h3, p, ol, ul { margin: 0; }
.topbar { border-bottom: 1px solid var(--rule); background: #fafbf7; }
.topbar-inner { width: min(1160px, calc(100% - 88px)); height: 76px; margin: auto; display: flex; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 29px; font-weight: 750; letter-spacing: -1.9px; line-height: 1; }
.brand-mark { width: 37px; height: 37px; display: grid; place-items: center; color: #e8f4c7; background: #194431; border-radius: 10px; }
.brand-caption { margin-left: 21px; padding-left: 21px; border-left: 1px solid #ced7ca; color: #637166; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.topbar-end { margin-left: auto; }
.private-state, .account-link { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; }
.private-state { border: 1px solid #d1dec9; border-radius: 20px; padding: 5px 12px; background: #f1f6e9; color: #395b3d; }
.account-link { padding: 8px 12px; border: 1px solid var(--rule); border-radius: 8px; max-width: 52vw; }
.account-link span { overflow: hidden; text-overflow: ellipsis; }
.guest-layout { width: min(1000px, calc(100% - 88px)); margin: clamp(38px, 8.5vh, 88px) auto 55px; display: grid; grid-template-columns: .87fr 1.13fr; align-items: stretch; border: 1px solid #d3dacf; border-radius: 19px; background: var(--paper); overflow: hidden; box-shadow: 0 12px 34px -20px #31452c46, 0 2px 5px #253b2310; }
.visual-panel { position: relative; overflow: hidden; color: #eff5e6; min-height: 506px; padding: 31px 34px 33px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate;
  background: radial-gradient(ellipse at 45% 35%, #345c44 0%, #234b39 47%, #193d30 90%); }
.visual-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .34;
  background-image: linear-gradient(#a5c39b1c 1px, transparent 1px), linear-gradient(90deg, #a5c39b1c 1px, transparent 1px); background-size: 29px 29px;
  mask-image: linear-gradient(to bottom, #0009, #000 48%, transparent 98%); }
.panel-heading, .panel-heading > span:first-child { display: flex; align-items: center; }
.panel-heading { justify-content: space-between; gap: 12px; color: #e1ebd9; font-size: 12px; font-weight: 650; letter-spacing: .04em; }
.panel-heading > span:first-child { gap: 9px; }
.step-count { color: #dce8c6; background: #c7e6ad0b; border: 1px solid #bbd2ad55; padding: 3px 9px; border-radius: 20px; font: 12px var(--mono); letter-spacing: .07em; }
.art-stage { position: relative; height: 237px; display: grid; place-items: center; margin: 12px -15px 10px; }
.archive-object { position: relative; width: 260px; height: 214px; transform: rotate(-5deg); }
.cast-shadow { position: absolute; width: 175px; height: 49px; left: 51px; bottom: 0; border-radius: 50%; background: #0b271bb8; filter: blur(12px); transform: skewX(-18deg); }
.case-interior { position: absolute; left: 25px; top: 68px; width: 217px; height: 96px; background: linear-gradient(155deg,#aac0a0 0%,#3f6249 19%,#243e30 60%);
  clip-path: polygon(0 29%, 31% 0, 100% 18%, 66% 63%, 4% 100%); }
.file-leaf { position: absolute; width: 149px; height: 92px; border-radius: 5px 5px 4px 4px; transform: skewY(9deg) rotate(-4deg); box-shadow: inset 0 2px 1px #ffffff99, inset -2px 0 2px #1d442c45, 0 3px 5px #14291a33; }
.file-leaf::before { content: ""; position: absolute; height: 12px; top: -9px; left: 7px; width: 52px; border-radius: 5px 7px 0 0; background: inherit; box-shadow: inset 0 1.5px #ffffff88; }
.leaf-back { top: 41px; left: 79px; background: linear-gradient(115deg,#e4efb3,#bfd187); }
.leaf-middle { top: 54px; left: 65px; background: repeating-linear-gradient(0deg,transparent 0 10px,#92ab9a45 10px 11px), linear-gradient(116deg,#f1f2da,#cddac8); }
.leaf-middle::before { left: 75px; width: 47px; }
.leaf-front { top: 73px; left: 46px; background: linear-gradient(118deg,#d8eaaa,#afc786); }
.leaf-front::before { width: 57px; }
.case-side { position: absolute; left: 172px; top: 84px; width: 72px; height: 113px; background: linear-gradient(118deg,#6f9075,#526f57 58%,#3e5947); clip-path: polygon(0 21%, 96% 0, 88% 71%, 0 99%); }
.case-front { position: absolute; left: 26px; top: 98px; width: 149px; height: 88px; transform: skewY(8deg) skewX(4deg); border-radius: 3px 1px 5px 5px;
  background: linear-gradient(142deg,#adc7a8,#8aa98d 58%,#75967b); box-shadow: inset 0 4px 1px #c5d7b2, inset 2px 0 2px #b5ccb1, inset -2px -4px 1px #3b5c4355; }
.label-holder { position: absolute; left: 48px; top: 20px; width: 56px; height: 24px; padding: 3px; border-radius: 2px; border: 1px solid #536e57; background: linear-gradient(140deg,#e0e7d0,#748971); box-shadow: 0 2px 2px #344f3666; }
.label-holder i { display: block; height: 100%; background: linear-gradient(135deg,#f4efce,#dad8b2); box-shadow: inset 0 1px 2px #2f483f66; }
.label-holder i::after { content: ""; position: absolute; left: 13px; right: 16px; top: 10px; height: 1px; background: #829077; box-shadow: 0 4px #a1a789; }
.drawer-pull { position: absolute; left: 62px; top: 55px; width: 30px; height: 8px; border: 2px solid #cbd6b9; border-top-color: #e6e9d4; border-radius: 2px 2px 4px 4px; background: #6c876e; box-shadow: 0 3px 2px #38533c99; }
.steps { padding: 0; list-style: none; border-top: 1px solid #b5d0af3a; padding-top: 15px; }
.steps li { position: relative; display: flex; gap: 13px; align-items: center; min-height: 39px; color: #c1d1c2; font-size: 13px; }
.steps li:not(:last-child)::after { position: absolute; content: ""; left: 12px; top: 32px; height: 14px; border-left: 1px solid #adc3a960; }
.step-dot { width: 25px; height: 25px; border: 1px solid #a9c0aa75; border-radius: 50%; display: grid; place-items: center; font: 12px var(--mono); }
.current .step-dot, .done .step-dot { background: #d4e9ac; border-color: #d4e9ac; color: #25452e; }
.steps .current { color: white; font-weight: 700; }
.done .step-dot { background: #acc69c; }
.panel-note { border-top: 1px solid #b5d0af3a; padding-top: 22px; }
.panel-note h2 { font-size: 23px; }
.panel-note p { font-size: 13px; color: #d1dfcc; line-height: 1.9; margin-top: 7px; max-width: 28em; }
.form-panel { padding: clamp(30px, 3.8vw, 56px); display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.section-symbol { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid #d1ddc7; background: #edf3e4; border-radius: 13px; color: #3c643e; margin-bottom: 20px; }
h1 { font-size: clamp(26px, 2.6vw, 37px); letter-spacing: -.055em; font-weight: 730; line-height: 1.34; }
.lede { font-size: 14px; line-height: 1.85; margin: 9px 0 27px; color: var(--muted); }
.stack { display: grid; gap: 17px; margin: 0; }
.stack label { display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; font-weight: 650; }
input:not([type=hidden]):not([type=file]), select { min-width: 0; color: var(--ink); border: 1px solid #c9d2c6; border-radius: 7px; background: #fff; }
.stack input:not([type=hidden]) { width: 100%; height: 47px; padding: 0 13px; font-size: 15px; font-weight: 450; }
input::placeholder { color: #78877c; opacity: 1; }
.stack input:focus, .search-box:focus-within { outline: 2px solid #609361; outline-offset: 1px; }
.stack input.otp { font: 19px var(--mono); letter-spacing: .26em; }
.button { min-height: 44px; border: 1px solid transparent; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 18px; font-weight: 650; font-size: 14px; line-height: 1.45; }
.primary { color: #fff; background: var(--green); border-color: var(--green); box-shadow: 0 2px 2px #163e2312; transition: background .15s; }
.primary:hover { background: #226344; }
.stack > .primary { justify-content: space-between; margin-top: 2px; min-height: 46px; }
.secondary { background: #fff; color: var(--ink); border-color: var(--rule); }
.secondary:hover, .icon-button:hover, .account-link:hover { background: #eaf0e3; }
.hint-box { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #dce3d4; background: #f0f4eb; border-radius: 9px; padding: 15px; margin-top: 26px; color: #4d6352; }
.hint-box svg { margin-top: 2px; }
.hint-box strong { color: #344d39; font-size: 12px; }
.hint-box p, .field-note, .manual p, .invite-result p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 4px 0 6px; }
code, .mono { font-family: var(--mono); overflow-wrap: anywhere; }
.hint-box code { font-size: 12px; color: #3b533d; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.host-row { grid-template-columns: 2fr 1fr; }
.form-divider { border-top: 1px solid var(--rule); }
.sub-link, .text-link { display: inline-flex; align-items: center; gap: 7px; color: #3c6246; font-weight: 600; font-size: 13px; }
.sub-link { margin-top: 23px; align-self: flex-start; }
.sub-link:hover, .text-link:hover, .file-name a:hover, .pagination a:hover { text-decoration: underline; }
.alert { display: flex; gap: 9px; align-items: flex-start; margin: 0 0 18px; padding: 11px 14px; font-size: 13px; line-height: 1.65; border-radius: 7px; background: #e8f2df; color: #315c37; }
.alert svg { margin-top: 2px; }
.alert.error { background: #fbebe4; color: #863b25; }
.pairing { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pairing canvas { width: 135px; height: 135px; image-rendering: pixelated; border: 1px solid var(--rule); border-radius: 5px; }
.pairing > div { display: grid; gap: 7px; }
.muted { font-size: 12px; color: var(--muted); }
.manual { margin: 16px 0 20px; border-bottom: 1px solid var(--rule); padding-bottom: 13px; font-size: 12px; }
summary { cursor: pointer; color: #3d5f43; }
.code-box { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 8px; border: 1px solid var(--rule); padding: 14px; background: #f0f4eb; font-size: 15px; line-height: 1.6; }
.field-note { margin: 8px 0 23px; }
.workspace, .settings { width: min(1100px, calc(100% - 88px)); margin: 52px auto 70px; }
.page-heading, .list-header, .storage-summary, .file-tools, .file-name, .file-actions, .settings-heading, .dialog-actions { display: flex; align-items: center; }
.page-heading, .list-header { justify-content: space-between; gap: 16px; }
.page-heading { margin-bottom: 27px; }
.page-heading p, .settings-card > p, dialog p { color: var(--muted); font-size: 14px; line-height: 1.8; margin-top: 6px; }
.storage-summary { gap: 12px; color: #486448; background: #e9efdf; border: 1px solid #d7e1cf; border-radius: 10px; padding: 9px 15px; }
.storage-summary small { display: block; color: #556a55; font-size: 11px; }
.storage-summary strong { font-family: var(--mono); font-size: 15px; }
.upload-panel { border: 1px solid var(--rule); background: var(--paper); border-radius: 13px; padding: 20px 25px; }
.upload-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 13px; margin-bottom: 15px; }
.upload-zone { display: flex; align-items: center; justify-content: center; gap: 17px; min-height: 132px; border: 2px dashed #97af89; border-radius: 10px; padding: 22px; cursor: pointer; background: #f2f7eb; }
.upload-zone:hover { border-color: #638759; }
.upload-zone.dragging { border-color: var(--green); background: #e1efce; outline: 3px solid #acc896; outline-offset: -4px; }
.drop-active, .dragging .drop-idle { display: none; }
.dragging .drop-active { display: inline; }
.upload-mark, .empty-icon { display: grid; place-items: center; color: #436e45; background: #ddebcf; border: 1px solid #cfdfc3; border-radius: 14px; width: 55px; height: 55px; flex: none; }
.upload-heading h2, .list-header h2, .settings-card h2, dialog h2 { font-size: 19px; letter-spacing: -.04em; }
.upload-copy strong { font-size: 16px; color: #294e32; }
.upload-copy small { display: block; font-size: 12px; line-height: 1.7; color: var(--muted); margin-top: 3px; }
.picker { position: relative; overflow: hidden; cursor: pointer; white-space: nowrap; margin-left: auto; flex: none; }
.picker input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.picker:focus-within { outline: 3px solid #658752; outline-offset: 3px; }
.file-section { padding: 23px 25px 8px; border: 1px solid var(--rule); border-radius: 13px; background: var(--paper); margin-top: 27px; }
.list-header { flex-wrap: wrap; margin-bottom: 18px; }
.list-header h2 { display: flex; align-items: center; gap: 9px; }
.count { border: 1px solid #d6dfd1; border-radius: 6px; padding: 2px 7px; background: #edf2e8; color: #51694f; font: 12px var(--mono); }
.file-tools { gap: 8px; }
.search-box, .sort-box { display: inline-flex; position: relative; align-items: center; border: 1px solid var(--rule); border-radius: 6px; background: white; overflow: hidden; }
.search-box { padding: 0 10px; gap: 7px; color: #748374; }
.search-box input:not([type=hidden]), .sort-box select { height: 34px; font-size: 12px; border: 0; outline: none; }
.search-box input { width: 140px; }
.sort-box select { appearance: none; padding: 0 27px 0 10px; }
.sort-box:focus-within { outline: 2px solid #609361; }
.sort-box svg { position: absolute; right: 7px; pointer-events: none; }
.quiet { border: 0; border-radius: 5px; padding: 7px 9px; color: #456349; background: #edf2e7; font-size: 12px; }
.file-list { list-style: none; padding: 0; }
.selection-bar, .select-page, .bulk-actions, .review-files li { display: flex; align-items: center; }
.selection-bar { flex-wrap: wrap; gap: 8px 13px; padding: 11px 0; border-top: 1px solid var(--rule); }
.select-page { gap: 7px; font-size: 13px; font-weight: 650; cursor: pointer; }
.file-section input[type=checkbox] { appearance: auto; width: 17px; height: 17px; accent-color: var(--green); cursor: pointer; margin: 0; flex: none; }
.check-file { display: grid; place-items: center; flex: none; min-width: 26px; min-height: 34px; cursor: pointer; }
#selected-count { color: var(--muted); font-size: 12px; }
.selection-link { border: 0; background: none; color: var(--green); text-decoration: underline; padding: 4px 0; font-size: 12px; }
.bulk-actions { margin-left: auto; gap: 7px; flex-wrap: wrap; }
.bulk-actions .button { min-height: 33px; padding: 5px 10px; gap: 6px; font-size: 12px; }
.bulk-delete { color: #823d2f; border-color: #d8c9c1; background: #fff; }
.bulk-delete:hover:enabled { background: #f9e9e3; }
.bulk-actions button:disabled { background: #f2f4ee; border-color: #dce1d7; color: #798279; box-shadow: none; cursor: default; }
.zip-label { font: 10px var(--mono); color: inherit; border: 1px solid currentColor; padding: 1px 3px; border-radius: 3px; }
.file-row.is-selected { background-color: #edf4e6; }
.column-head > :first-child { padding-left: 38px; }
.selection-error { margin-top: 6px; }
.review-files { list-style: none; padding: 0; margin: 16px 0 23px; max-height: 45vh; overflow: auto; }
.review-files li { gap: 10px; border-top: 1px solid var(--rule); padding: 9px 0; font-size: 14px; }
.review-files li span { overflow-wrap: anywhere; }
.review-files small { margin-left: auto; white-space: nowrap; color: var(--muted); }
.file-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 143px 75px; align-items: center; gap: 15px; padding: 12px 0; border-top: 1px solid #e0e5db; }
.column-head { color: #667666; font-size: 11px; letter-spacing: .04em; }
.file-name { gap: 12px; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.file-icon { width: 36px; height: 40px; border-radius: 7px; background: #e9eee3; color: #627159; display: grid; place-items: center; flex: none; }
.kind-image { background: #f4edde; color: #896a3b; }
.kind-media { background: #ede9f4; color: #74678c; }
.kind-code { background: #e4edf1; color: #496e80; }
.kind-archive { background: #efe7dc; color: #7c694f; }
.file-size, .file-time { font-size: 12px; color: #5c6d60; font-variant-numeric: tabular-nums; }
.file-actions { justify-content: flex-end; gap: 4px; }
.icon-button { padding: 0; width: 32px; height: 32px; background: transparent; border: 1px solid transparent; border-radius: 5px; color: #586e5c; display: inline-grid; place-items: center; flex: none; }
.delete-trigger:hover { color: #93412e; background: #f6e7df; }
.empty-list { padding: 44px 15px 48px; border-top: 1px solid var(--rule); text-align: center; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 13px; background: #eff3e9; color: #859979; }
.empty-list h3 { font-size: 16px; }
.empty-list p, .empty-list a { margin-top: 7px; color: var(--muted); font-size: 13px; }
.transfer { display: flex; gap: 16px; align-items: center; margin: 14px 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 8px; padding: 13px; }
.transfer > div { min-width: 0; flex: 1; display: grid; gap: 4px; font-size: 13px; overflow-wrap: anywhere; }
.transfer span { color: var(--muted); font-size: 12px; }
progress { width: min(25%, 200px); accent-color: #4f814d; }
#upload-result { margin: 12px 0; }
.pagination { display: flex; justify-content: center; gap: 20px; align-items: center; padding: 16px; border-top: 1px solid var(--rule); font-size: 13px; }
.settings { max-width: 700px; }
.settings > .sub-link { margin: 0 0 16px; }
.settings-card { padding: 24px 28px; border: 1px solid var(--rule); border-radius: 12px; background: var(--paper); margin-top: 20px; }
.settings-heading { gap: 10px; overflow-wrap: anywhere; }
.settings-card > p { margin-bottom: 20px; }
.settings-card .secondary { justify-self: start; }
.invite-result { border-top: 1px solid var(--rule); margin-top: 22px; padding-top: 20px; }
.invite-result .code-box { margin: 9px 0; }
dialog { border: 1px solid var(--rule); border-radius: 13px; padding: 26px; max-width: min(430px, 92vw); color: var(--ink); background: var(--paper); }
dialog::backdrop { background: #10291ebb; }
dialog p { overflow-wrap: anywhere; }
.dialog-actions { justify-content: flex-end; gap: 10px; }
.danger { background: #943e2b; color: white; }
@media (max-width: 840px) {
  .topbar-inner, .workspace, .settings { width: calc(100% - 44px); }
  .guest-layout { width: calc(100% - 44px); grid-template-columns: .76fr 1fr; }
  .visual-panel { padding: 27px 22px; }
  .form-panel { padding: 31px 27px; }
  .archive-object { transform: rotate(-5deg) scale(.87); }
  .upload-zone { gap: 12px; }
  .file-row { grid-template-columns: minmax(0,1fr) 70px 114px 68px; gap: 8px; }
}
@media (max-width: 640px) {
  .topbar-inner { height: 62px; }
  .brand { font-size: 25px; gap: 8px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
  .brand-caption { display: none; }
  .guest-layout { width: calc(100% - 30px); margin: 23px auto 30px; display: flex; flex-direction: column; border-radius: 13px; }
  .visual-panel { min-height: auto; padding: 17px 20px; }
  .panel-heading { font-size: 11px; }
  .art-stage { display: none; }
  .steps { margin-top: 13px; border: none; padding: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
  .steps li { flex-direction: column; gap: 6px; align-items: flex-start; justify-content: center; font-size: 10px; }
  .steps li:not(:last-child)::after { top: 11px; left: 31px; width: calc(100% - 29px); height: 1px; border: 0; background: #b2ceac50; }
  .step-dot { width: 22px; height: 22px; font-size: 11px; }
  .panel-note { display: none; }
  .form-panel { padding: 26px 21px; }
  .section-symbol { width: 40px; height: 40px; margin-bottom: 14px; }
  .lede { margin-bottom: 20px; font-size: 13px; }
  .stack { gap: 15px; }
  .stack input:not([type=hidden]), .search-box input:not([type=hidden]), .sort-box select { font-size: 16px; }
  .hint-box { margin-top: 20px; }
  .workspace, .settings { margin: 28px auto 40px; width: calc(100% - 30px); }
  .page-heading { gap: 9px; margin-bottom: 17px; }
  .page-heading p { font-size: 12px; }
  .storage-summary { padding: 7px 9px; gap: 6px; }
  .storage-summary strong { font-size: 13px; }
  .upload-panel { padding: 16px 14px; }
  .upload-heading { gap: 8px; }
  .upload-heading h2 { font-size: 16px; }
  .upload-heading .picker { min-height: 38px; padding: 7px 10px; font-size: 13px; }
  .upload-zone { min-height: 124px; flex-direction: column; text-align: center; padding: 15px 8px; gap: 8px; }
  .upload-copy strong { font-size: 14px; }
  .upload-mark { width: 43px; height: 43px; border-radius: 10px; }
  .bulk-actions { width: 100%; margin: 0; }
  .file-section { padding: 17px 14px 5px; margin-top: 17px; }
  .list-header { align-items: flex-start; gap: 12px; }
  .file-tools { width: 100%; gap: 5px; }
  .search-box { flex: 1; min-width: 0; padding: 0 6px; }
  .search-box input { width: 100%; }
  .sort-box select { font-size: 13px; }
  .column-head { display: none; }
  li.file-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; row-gap: 4px; }
  .file-name { grid-column: 1; grid-row: 1; gap: 7px; font-size: 13px; }
  .file-icon { width: 27px; height: 29px; }
  .file-size { grid-column: 1; grid-row: 2; padding-left: 67px; font-size: 11px; }
  .file-time { display: none; }
  .file-actions { grid-column: 2; grid-row: 1/3; }
  .transfer { gap: 8px; }
  .settings-card { padding: 19px; }
}
@media (max-width: 370px) {
  .form-row { grid-template-columns: 1fr; }
  .host-row { grid-template-columns: 1.8fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
