:root {
  color-scheme: light;
  --paper: #f7f4f0;
  --ink: #32302e;
  --muted: #625f59;
  --line: #dedbd4;
  --leaf: #416f29;
  --leaf-hover: #296d00;
  --pale: #ddebc9;
  font: 16px/1.5 Lato, "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, a { font: inherit; }
button, .light-button { cursor: pointer; }
button { color: inherit; }
button:disabled, input:disabled { cursor: default; opacity: .48; }
:focus-visible, .drop-zone:focus-within { outline: 3px solid #477aa5; outline-offset: 3px; }
.symbols { width: 0; height: 0; position: absolute; overflow: hidden; }
.icon { flex: 0 0 auto; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.masthead { background: white; border-bottom: 1px solid var(--line); }
.mast-inner, main { width: min(1190px, calc(100% - 72px)); margin-inline: auto; }
.mast-inner { min-height: 86px; display: flex; align-items: center; gap: 22px; }
.brand { width: 100px; height: auto; display: block; }
.mast-label { font-size: .88rem; font-weight: 650; padding-left: 22px; border-left: 1px solid var(--line); }
.quiet,.secondary,.primary,.light-button,.icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 8px; line-height: 1.2; text-decoration: none; }
.quiet { margin-left: auto; border: 0; background: transparent; padding: 10px 0 10px 10px; font-size: .9rem; }
.quiet:hover, .icon-button:hover { color: var(--leaf-hover); }
.primary, .secondary, .light-button { min-height: 42px; padding: 10px 17px; font-size: .9rem; font-weight: 700; }
.primary { border: 1px solid var(--leaf); color: white; background: var(--leaf); }
.primary:hover:enabled { background: var(--leaf-hover); }
.secondary { background: white; border: 1px solid var(--line); }
.light-button { background: white; border: 1px solid transparent; color: var(--ink); }
.light-button:hover, .secondary:hover { background: var(--pale); }
main { padding-block: 34px 60px; }
h1,h2,p { margin: 0; }
h1 { line-height: 1.08; font-size: clamp(2.4rem, 3.8vw, 3.65rem); letter-spacing: -.05em; }
h2 { line-height: 1.18; letter-spacing: -.035em; font-size: 1.45rem; }
small { font-size: .82rem; }
.startup { color: var(--muted); padding-block: 2rem; }
.login-layout { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; border-radius: 14px; background: white; border: 1px solid var(--line); margin: clamp(12px, 5vh, 60px) auto; max-width: 1000px; }
.login-art { background: #61796a url('/landskap.jpg') center / cover no-repeat; min-height: 440px; }
.login-content { padding: clamp(26px, 5vw, 68px); display: flex; flex-direction: column; justify-content: center; }
.login-content h1 { font-size: clamp(2.2rem, 4vw, 3.3rem); }
.login-content > p { margin: 14px 0 28px; color: var(--muted); }
.login-content form { display: grid; gap: 9px; }
.login-content button { margin-top: 11px; justify-content: space-between; }
label { font-weight: 650; font-size: .9rem; }
input[type=password], .seconds { border: 1px solid #aaa79e; border-radius: 6px; background: white; }
input[type=password] { font-size: 1rem; width: 100%; padding: 10px; }
.banner { overflow: hidden; border-radius: 14px; color: white; background: linear-gradient(90deg,rgba(16,36,29,.92),rgba(17,35,31,.76) 37%,rgba(17,35,31,.12) 76%), #425d4a url('/landskap.jpg') 50% 62% / cover; }
.banner-content { padding: clamp(28px, 4vw, 52px); }
.banner p { margin: 10px 0 23px; max-width: 39ch; font-size: 1.04rem; }
.screen-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rotation-options { display: flex; flex-wrap: wrap; gap: 3px; }
.rotation-options [aria-pressed="true"] { background: var(--pale); color: #274c1b; box-shadow: inset 0 0 0 2px var(--leaf); }
.rotation-options [data-rotation="-90"] .icon { transform: scaleX(-1); }
.format-tip { margin-top: 12px; color: var(--muted); font-size: .9rem; }
.columns { display: grid; grid-template-columns: 1.06fr 1fr; align-items: start; gap: 22px; margin-top: 24px; }
.card { min-width: 0; border-radius: 12px; background: white; border: 1px solid var(--line); }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 21px 24px; }
.title-group { display: flex; align-items: center; gap: 11px; }
.section-icon { color: var(--leaf); width: 23px; height: 23px; }
.count { background: var(--pale); color: #355526; border-radius: 30px; min-width: 27px; padding: 2px 8px; font-size: .79rem; font-weight: 700; text-align: center; }
.card-body, .settings, .save-bar { padding: 20px 24px; }
.drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; border: 1.5px dashed #9fae92; padding: 21px 10px; background: #f6f9f2; border-radius: 8px; text-align: center; cursor: pointer; }
.drop-zone:hover, .drop-zone.over { background: var(--pale); border-color: var(--leaf); }
.drop-zone input { width: 1px; height: 1px; position: absolute; opacity: 0; }
.drop-zone small,.item-meta,.empty-library,.empty-playlist p,.save-bar small { color: var(--muted); font-weight: 400; }
.upload-mark { display: grid; place-items: center; color: var(--leaf); margin-bottom: 4px; }
.upload-mark .icon { width: 25px; height: 25px; }
#upload-status { margin-top: 12px; color: var(--leaf); font-size: .9rem; }
.library-list { margin-top: 17px; }
.empty-library { font-size: .88rem; padding: 1px 0; }
.item { display: flex; gap: 12px; align-items: center; padding: 13px 0; min-width: 0; }
.item + .item { border-top: 1px solid #ebe8e3; }
.item:last-child { padding-bottom: 2px; }
.file-mark, .rank { flex: 0 0 auto; display: grid; place-items: center; }
.file-mark { color: #6a594a; width: 34px; height: 39px; border-radius: 6px; background: var(--paper); }
.item-text { flex: 1; min-width: 0; }
.item-name { display: block; font-size: .95rem; overflow-wrap: anywhere; font-weight: 700; line-height: 1.35; }
.item-meta { display: block; font-size: .8rem; line-height: 1.4; margin-top: 3px; }
.tools { display: flex; flex-wrap: wrap; gap: 3px; }
.icon-button { height: 34px; width: 34px; padding: 0; background: transparent; border: 1px solid transparent; }
.icon-button:hover:enabled { background: #eff3ea; }
.icon-button .icon { width: 17px; height: 17px; }
.icon-button.add { color: var(--leaf); border-color: #bdccb1; background: #f6f9f2; }
.icon-button.selected { color: var(--leaf); background: var(--pale); }
.rank { width: 29px; height: 29px; font-size: .8rem; background: var(--paper); border-radius: 7px; color: var(--muted); font-weight: 700; }
#playlist { margin: 0; padding: 0; list-style: none; }
#playlist .item:first-child { padding-top: 0; }
.empty-playlist { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 23px 10px; }
.empty-playlist .icon { color: #73816a; width: 29px; height: 29px; margin-bottom: 6px; }
.empty-playlist p { font-size: .85rem; }
.settings, .save-bar, #duration-fields { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.settings { border-block: 1px solid var(--line); background: #faf9f7; padding-block: 14px; }
.settings label { display: inline-flex; align-items: center; gap: 9px; }
.settings label .icon { width: 17px; color: var(--muted); }
.seconds { display: inline-flex; align-items: center; padding-right: 9px; }
.seconds input { border: 0; width: 65px; padding: 7px 0 7px 9px; border-radius: 6px; font-size: .95rem; background: transparent; }
.seconds span { font-size: .8rem; color: var(--muted); }
.save-bar { padding-block: 16px; }
dialog { padding: 26px; border: 1px solid var(--line); border-radius: 12px; width: min(430px, calc(100% - 28px)); color: var(--ink); }
dialog::backdrop { background: #15201482; }
.dialog-name { font-weight: 600; overflow-wrap: anywhere; margin: 8px 0 22px; color: var(--muted); }
.dialog-actions { margin-top: 24px; display: flex; justify-content: flex-end; gap: 9px; }
#page-times { margin-top: 16px; border-block: 1px solid var(--line); padding-block: 10px; }
#page-times summary { cursor: pointer; color: var(--leaf); font-size: .9rem; font-weight: 650; }
#page-times p { margin-block: 8px; color: var(--muted); font-size: .85rem; }
#page-inputs { max-height: 36vh; overflow-y: auto; padding: 3px; }
.page-input { display: flex; justify-content: space-between; align-items: center; padding-block: 4px; }
button.danger { background: #963c2b; border-color: #963c2b; }
button.danger:hover:enabled { background: #813121; }
.error { color: #9e2d1f; font-size: .9rem; }
#feedback { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 9px 8px 16px; width: max-content; max-width: calc(100% - 28px); background: #253520; color: white; border-radius: 8px; box-shadow: 0 3px 15px #0002; z-index: 3; overflow-wrap: anywhere; }
#feedback.error-toast { background: #782f25; }
#feedback .icon-button:hover { color: inherit; background: #ffffff24; }
@media (max-width: 940px) { .columns { grid-template-columns: 1fr 1fr; gap: 15px; } .card-body,.card-header,.settings,.save-bar { padding-inline: 16px; } .item { gap: 8px; } .tools { gap: 0; } }
@media (max-width: 760px) { .mast-inner,main { width: min(620px, calc(100% - 32px)); } .mast-inner { min-height: 70px; gap: 13px; } .mast-label { padding-left: 13px; } .brand { width: 80px; } main { padding-block: 18px 38px; } .columns { grid-template-columns: 1fr; margin-top: 16px; } .login-layout { grid-template-columns: 1fr; max-width: 470px; margin-top: 10px; } .login-art { min-height: 150px; background-position: center 63%; } .banner { background-position: 55% 60%; } }
@media (max-width: 420px) { .mast-label,.quiet { font-size: .78rem; } .quiet { gap: 4px; } .mast-inner { gap: 9px; } .mast-label { padding-left: 9px; } .file-mark { display: none; } .settings { gap: 6px; } .banner-content { padding: 22px; } .banner { background-image: linear-gradient(90deg,#10241deb,#11231fa3),url('/landskap.jpg'); } .icon-button { width: 32px; } }
