:root {
  color-scheme: light;
  --paper: #f5f3ef;
  --surface: #fbfaf8;
  --ink: #26272a;
  --muted: #626267;
  --line: #d9d5ce;
  --sidebar: #26272a;
  --side-hover: #35363a;
  --side-active: #424348;
  --radius: 13px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid #888991; outline-offset: 3px; }
a { color: inherit; }
[hidden] { display: none !important; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 auto; vertical-align: middle; }
.shell { min-height: 100dvh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.sidebar { background: var(--sidebar); color: #f6f5f4; position: sticky; top: 0; height: 100dvh; overflow-y: auto; padding: 29px 14px; }
.brand { margin: 0 11px 26px; display: flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; font-size: 27px; font-weight: 750; letter-spacing: -.055em; }
.brand .icon { width: 36px; height: 36px; }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 47px; margin-block: 3px; padding: 9px 11px; border-radius: 8px; text-decoration: none; font-size: 15px; font-weight: 560; }
.nav-link .icon { color: #d7d7da; }
.nav-link:hover { background: var(--side-hover); }
.nav-link[aria-current="page"] { background: var(--side-active); font-weight: 700; }
.nav-link[aria-current="page"] .icon { color: #fff; }
.nav-heading { padding-inline: 11px; margin: 25px 0 7px; font-size: 13px; color: #b9b9bd; font-weight: 650; }
.nav-divider { border: 0; border-top: 1px solid #4b4b50; margin: 19px 11px 13px; }
.main-panel { min-width: 0; width: 100%; max-width: 1640px; margin-inline: auto; padding: 23px clamp(21px, 2.3vw, 40px) 50px; }
.toolbar { display: flex; gap: 13px; align-items: center; position: relative; z-index: 3; margin-bottom: 23px; }
.search { min-width: 100px; flex: 1; background: #fbfaf8; display: flex; align-items: center; gap: 9px; padding-inline: 13px; height: 46px; border: 1px solid #cfcac3; border-radius: 9px; }
.search:focus-within { border-color: #77777c; box-shadow: 0 0 0 2px #26272a0e; }
.search-icon { color: #6a696b; display: flex; }
.search-icon .icon { width: 19px; height: 19px; }
.search input { width: 100%; min-width: 0; border: 0; background: transparent; color: var(--ink); outline: none; padding: 0; font-size: 15px; }
.search input::placeholder { color: #66666b; }
.search input:focus-visible { outline: none; }
.primary, .secondary, .language-trigger, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 13px; border-radius: 9px; white-space: nowrap; font-weight: 650; font-size: 14px; }
.primary { color: #fff; background: var(--ink); border: 1px solid var(--ink); }
.primary:hover { background: #3d3e43; }
.secondary, .language-trigger, .icon-button { background: var(--surface); border: 1px solid #cfcac3; color: var(--ink); }
.secondary:hover, .language-trigger:hover, .icon-button:hover { background: #eeece8; }
.primary .icon, .language-trigger .icon, .secondary .icon { width: 17px; height: 17px; }
.language { position: relative; flex-shrink: 0; }
.language-trigger .chevron { width: 14px; height: 14px; margin-left: 1px; }
.language-trigger[aria-expanded="true"] .chevron { transform: rotate(180deg); }
.language-popover { position: absolute; top: 100%; right: 0; padding-top: 7px; width: max(100%, 166px); z-index: 5; }
.language-options { padding: 5px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: 0 8px 25px #22222219; }
.language-options button { display: flex; justify-content: space-between; align-items: center; width: 100%; min-height: 40px; padding: 5px 9px; border: 0; background: transparent; border-radius: 6px; color: var(--ink); text-align: left; font-size: 14px; }
.language-options button:hover, .language-options button:focus-visible { background: #eeece8; }
.language-options .icon { width: 16px; height: 16px; }
.mobile-nav { display: none; }
.hero { background: #303135; border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; min-height: clamp(204px, 20.5vw, 290px); color: #fff; padding: clamp(23px, 3vw, 46px); position: relative; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #252629 3%, #252629e8 28%, #25262966 66%, #25262910 100%), var(--hero-image, none) center 57% / cover; }
.hero:not(.photo)::before { background: radial-gradient(ellipse at 95% 110%, #54565e, transparent 65%), #2b2c30; }
.hero:not(.photo) { min-height: 205px; }
.hero-mark { position: absolute; right: 6%; top: 50%; transform: translateY(-50%); z-index: -1; color: #ffffff1f; }
.hero-mark .icon { width: clamp(95px, 16vw, 196px); height: clamp(95px, 16vw, 196px); stroke-width: .85; }
h1, h2, h3, p { margin: 0; }
.hero h1 { font-size: clamp(38px, 5.3vw, 77px); line-height: .98; font-weight: 780; letter-spacing: -.068em; overflow-wrap: anywhere; }
.hero p { margin-top: 14px; font-size: clamp(14px, 1.48vw, 20px); color: #f0efed; line-height: 1.4; }
.tabs { display: flex; align-items: stretch; gap: clamp(18px, 2.8vw, 38px); border-bottom: 1px solid #cfcac3; margin-top: 5px; overflow-x: auto; scrollbar-width: thin; }
.tab { min-height: 55px; flex: 0 0 auto; border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 1px 2px 0; color: #56565b; font-weight: 550; font-size: 15px; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { color: var(--ink); border-color: #36373c; font-weight: 730; }
.tab:focus-visible { outline-offset: -4px; }
.section-heading { margin: 22px 0 15px; font-size: clamp(25px, 3vw, 39px); letter-spacing: -.055em; line-height: 1.15; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: stretch; }
.card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; width: 100%; min-width: 0; padding: 12px; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.card:hover { box-shadow: 0 4px 16px #27272a0e; border-color: #aaa8a4; }
.card-picture { aspect-ratio: 2.75; position: relative; border-radius: 8px; width: 100%; overflow: hidden; display: grid; place-items: center; background: #dedcd7; color: #54555b; }
.card-picture img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.card-picture > .icon { width: 37px; height: 37px; }
.play-symbol { z-index: 1; display: grid; place-items: center; border-radius: 100%; width: 45px; height: 45px; background: #252629c4; color: #fff; }
.play-symbol .icon { width: 18px; height: 18px; margin-left: 2px; fill: currentColor; }
.card-copy { min-width: 0; padding: 9px 4px 1px; }
.card-meta { display: block; color: var(--muted); font-size: 13px; font-weight: 650; line-height: 1.35; }
.card-title { display: block; margin-top: 2px; font-size: clamp(18px, 1.65vw, 26px); font-weight: 740; letter-spacing: -.04em; overflow-wrap: anywhere; line-height: 1.22; }
.card.compact { flex-direction: row; align-items: center; gap: 12px; padding: 15px; min-height: 85px; }
.card.compact .card-copy { padding: 0; }
.card-icon { display: grid; place-items: center; width: 38px; height: 38px; color: #434449; flex-shrink: 0; }
.card-icon .icon { width: 32px; height: 32px; stroke-width: 1.55; }
.empty { color: var(--muted); background: var(--surface); border: 1px dashed #c8c4bd; border-radius: var(--radius); padding: 30px 23px; line-height: 1.5; }
.empty .secondary { margin-top: 14px; }
.plain-hero h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100% - 32px); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 23px; background: var(--surface); box-shadow: 0 18px 80px #0003; }
dialog::backdrop { background: #1d1d22a0; }
.dialog-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 17px; }
.dialog-header h2 { font-size: 25px; letter-spacing: -.045em; overflow-wrap: anywhere; }
.dialog-header .icon-button { min-height: 34px; width: 34px; padding: 0; }
.dialog-header .icon { width: 17px; height: 17px; }
.form { display: grid; gap: 13px; }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 620; }
.form input, .form select, .form textarea { width: 100%; min-width: 0; color: var(--ink); min-height: 41px; border: 1px solid #bbb8b2; border-radius: 7px; background: #fff; padding: 8px 10px; }
.form input[type=file] { font-size: 13px; }
.form textarea { min-height: 100px; resize: vertical; }
.form small, .detail-meta { color: var(--muted); font-size: 13px; font-weight: 500; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dialog-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 6px; }
.detail-actions { justify-content: flex-start; margin-top: 16px; }
.detail-actions a { text-decoration: none; }
.detail-text { margin-top: 11px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.detail-image, .detail-video { display: block; max-height: 390px; width: 100%; object-fit: contain; background: #29292d; border-radius: 9px; margin-top: 16px; }
.status { position: fixed; z-index: 9; bottom: 20px; right: 20px; background: #303136; color: #fff; padding: 11px 14px; border-radius: 8px; box-shadow: 0 6px 24px #0002; }
@media (max-width: 1020px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
}
@media (max-width: 740px) {
  .shell { display: block; }
  .sidebar { position: sticky; top: 0; height: auto; z-index: 4; padding: 9px 16px; overflow: visible; }
  .brand { font-size: 24px; margin: 0; }
  .brand .icon { width: 28px; height: 28px; }
  .sidebar nav { display: none; position: absolute; top: 100%; z-index: 8; left: 0; width: min(290px, 100vw); padding: 7px 12px 14px; border-radius: 0 0 12px 0; background: var(--sidebar); max-height: calc(100dvh - 58px); overflow: auto; box-shadow: 0 10px 25px #0003; }
  .sidebar nav.open { display: block; }
  .main-panel { padding: 13px 13px 33px; }
  .toolbar { flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
  .mobile-nav { display: inline-flex; position: absolute; right: 13px; top: 5px; min-width: 38px; min-height: 36px; padding: 0; }
  .mobile-nav .icon { width: 19px; height: 19px; }
  .toolbar .search { order: 3; flex-basis: 100%; height: 40px; }
  .toolbar .add-button { margin-left: auto; }
  .toolbar .language-trigger, .toolbar .add-button { min-height: 38px; padding: 0 8px; font-size: 12px; }
  .toolbar .language-trigger > .icon:first-child { display: none; }
  .language-popover { right: auto; left: 0; }
  .hero { min-height: 172px; padding: 24px 17px; }
  .hero:not(.photo) { min-height: 160px; }
  .hero h1 { font-size: clamp(34px, 9vw, 55px); }
  .hero p { margin-top: 9px; }
  .tabs { gap: 17px; }
  .tab { min-height: 46px; font-size: 13px; }
  .section-heading { margin: 18px 0 11px; }
  .cards { gap: 9px; }
  .card { padding: 8px; }
  .card-title { font-size: 16px; }
  .card-meta { font-size: 11px; }
  .card.compact { min-height: 72px; padding: 9px; gap: 5px; }
  .card-icon { width: 25px; height: 25px; }
  .card-icon .icon { width: 22px; height: 22px; }
  .play-symbol { width: 34px; height: 34px; }
  .play-symbol .icon { width: 14px; height: 14px; }
}
@media (max-width: 350px) {
  .cards { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.account { text-decoration: none; }
.account .icon { width: 16px; height: 16px; }
.import { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 15px; padding: 12px 14px; margin-bottom: 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); font-size: 14px; }
.import .secondary { min-height: 36px; }
@media (max-width: 740px) {
  .toolbar .account { min-height: 38px; padding: 0 8px; font-size: 12px; }
  .toolbar .account .icon { display: none; }
}
