/* The realm website: a Guild Wars-style game site (a night sky behind a bronze menu bar, framed windows with a gold
   title strip, the ten professions under their colours, a side menu for the player area, ruled tables), with the
   game's own buttons, drop-downs and item slots as textures. Those textures are served from /assets/ui when they have
   been prepared (tools/site_assets.py); without them every part falls back to a plain border and a flat fill. */

:root {
  --page: #07080c;
  --ink: #ddd6c1;
  --muted: #9a937f;
  --gold: #e6cd7f;
  --gold-dark: #a8873a;
  --rule: #4b4636;
  --panel: #0b0b0e;
  --field: #11121a;
  --link: #9fc2f5;
  --good: #8fd08a;
  --bad: #ee8a7a;
  --serif: Georgia, 'Palatino Linotype', 'Book Antiqua', Palatino, serif;
  --sans: Verdana, Tahoma, 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { background: #050609; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 13px/1.55 var(--sans);
  /* A night sky over Tyria: a few stars on tiles of different sizes (so they never line up) over a deep blue glow. */
  background:
    radial-gradient(1px 1px at 41px 63px, rgba(255, 255, 255, .55), transparent),
    radial-gradient(1px 1px at 173px 241px, rgba(230, 205, 127, .5), transparent),
    radial-gradient(1.4px 1.4px at 97px 149px, rgba(255, 255, 255, .35), transparent),
    radial-gradient(1px 1px at 251px 37px, rgba(159, 194, 245, .5), transparent),
    radial-gradient(ellipse 80% 60% at 50% -6%, #26376a 0, #0f1730 48%, transparent 100%),
    var(--page);
  background-size: 277px 263px, 311px 293px, 197px 211px, 359px 337px, auto, auto;
  background-attachment: fixed;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: #cfe0ff; text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 700; color: var(--gold); margin: 0; }
p { margin: 0 0 8px; }
code { font: 12px Consolas, 'Lucida Console', monospace; color: #f0e3b4; background: #15151c; padding: 1px 5px; border: 1px solid #2c2a22; }
small { font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 11px; margin: -2px 0 8px; }

.frame { width: min(1040px, calc(100% - 24px)); margin: 0 auto; padding-bottom: 28px; }

/* --- header and menu bar ------------------------------------------------------------------------------------- */

.masthead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 4px 16px; }
.brand { display: flex; align-items: center; gap: 16px; color: var(--gold); }
.brand:hover { text-decoration: none; }
.brand img { flex: none; filter: drop-shadow(0 2px 5px #000) drop-shadow(0 0 12px rgba(230, 205, 127, .28)); }
.brand-text { display: flex; flex-direction: column; gap: 6px; }
.brand-name {
  font: 700 38px/1 var(--serif); letter-spacing: 1.5px; color: var(--gold);
  background: linear-gradient(#fff4c8 0%, #e6cd7f 46%, #a8873a 100%); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .95));
}
.brand:hover .brand-name { filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .95)) brightness(1.15); }
.brand-tag { font: 700 10px/1 var(--sans); letter-spacing: 3.2px; text-transform: uppercase; color: var(--muted); }
#who { color: var(--muted); }
#who a, #who .link { color: var(--link); }

/* The main menu: one bar, one entry per page, the current page lit from below. */
.menu {
  display: flex; flex-wrap: wrap; margin: 0 0 18px;
  background: linear-gradient(#3b382d, #1b1a14 55%, #12110d); border: 1px solid #8b8466; border-top-color: var(--gold-dark); border-radius: 3px;
  box-shadow: inset 0 1px 0 rgba(255, 244, 200, .2), inset 0 0 0 1px #000, 0 4px 14px rgba(0, 0, 0, .55);
}
.menu a {
  display: block; padding: 0 24px; height: 38px; font: 700 12px/38px var(--sans); letter-spacing: .7px; text-transform: uppercase;
  color: #cfc8b2; border-right: 1px solid #0a0a08; box-shadow: 1px 0 0 rgba(255, 255, 255, .07);
}
.menu a:hover { color: #fff; text-decoration: none; background: linear-gradient(#4a4839, #25231b); }
.menu a.on { color: var(--gold); background: linear-gradient(#1f2c4a, #101828); box-shadow: inset 0 -3px 0 var(--gold), 1px 0 0 rgba(255, 255, 255, .07); }
.menu a.right { margin-left: auto; border-right: 0; border-left: 1px solid #0a0a08; }

/* Small tabs inside a window (storage panes, administrator sections); the open tab joins the box under it. */
.tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0; margin: 0 0 -1px; position: relative; z-index: 1; }
.tab {
  display: block; padding: 0 15px; height: 29px; font: 700 11px/28px var(--sans); color: #aaa38f; cursor: pointer;
  background: linear-gradient(#2d2b23, #16150f); border: 1px solid #5d5742; border-bottom-color: #8b8466; border-radius: 3px 3px 0 0;
}
.tab:hover { color: #fff; text-decoration: none; background: linear-gradient(#3d3a2e, #1f1d16); }
.tab.on { color: var(--gold); background: #0b0c12; border-color: #8b8466; border-bottom-color: #0b0c12; box-shadow: inset 0 2px 0 var(--gold); }
.tabs.small .tab { padding: 0 10px; min-width: 30px; text-align: center; }
.tab-body { padding: 14px; background: #0b0c12; border: 1px solid #8b8466; }

/* --- windows -------------------------------------------------------------------------------------------- */

/* The game's frame: a bronze edge, a black line inside it and a second fine line inside that. */
.window {
  margin: 0 0 16px; overflow: hidden; color: var(--ink); background: linear-gradient(#111118, #09090d);
  border: 1px solid #8b8466; border-radius: 4px;
  box-shadow: inset 0 0 0 1px #000, inset 0 0 0 2px rgba(168, 135, 58, .3), 0 6px 22px rgba(0, 0, 0, .65);
}
.titlebar {
  margin: 0; padding: 0 16px; height: 34px; text-align: left; font: 700 15px/34px var(--serif); color: var(--gold);
  letter-spacing: .6px; text-shadow: 0 1px 2px #000; background: linear-gradient(#46422f, #1f1d16);
  border-bottom: 1px solid #8b8466; box-shadow: inset 0 1px 0 rgba(255, 244, 200, .2);
}
.titlebar::before {
  content: ''; display: inline-block; width: 6px; height: 6px; margin: -2px 11px 0 0; vertical-align: middle;
  background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 7px rgba(230, 205, 127, .65);
}
.inside { padding: 16px 18px 14px; }
.panel { margin: 0 0 22px; }
.panel:last-child { margin-bottom: 4px; }
.panel > h3 { font-size: 15px; margin: 0 0 10px; padding-bottom: 4px; border-bottom: 1px solid var(--rule); }
.page-title { font-size: 20px; margin: 8px 0 10px; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 0 18px; align-items: start; }
.cols .side { display: block; }
.narrow { width: min(440px, 100%); margin: 24px auto 0; }
.narrow-left { max-width: 440px; }

/* The player area: a side menu and the open page. */
.account { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 18px; align-items: start; }
.sidemenu { margin: 0; }
.sidemenu .who { display: block; padding: 10px 14px; font: 700 14px var(--serif); color: var(--gold); background: linear-gradient(#403d32, #1d1b16); border-bottom: 1px solid #8b8466; }
.sidemenu .who small { display: block; font: 11px var(--sans); color: var(--muted); }
.sidemenu ul { list-style: none; margin: 0; padding: 4px 0; }
.sidemenu li a {
  display: block; padding: 8px 14px 8px 11px; color: #cfc8b2; font-weight: 700; border-left: 3px solid transparent; border-bottom: 1px solid #1c1a14;
}
.sidemenu li:last-child a { border-bottom: 0; }
.sidemenu li a:hover { color: #fff; text-decoration: none; background: rgba(159, 194, 245, .08); }
.sidemenu li a.on { color: var(--gold); border-left-color: var(--gold); background: linear-gradient(90deg, #26324f, #121827); }

/* One line under every page. */
.footer { margin-top: 18px; padding: 14px 8px 0; text-align: center; font-size: 11px; color: #6f6a58;
  border-top: 1px solid transparent; border-image: linear-gradient(90deg, transparent, #6b6552 50%, transparent) 1; }
.footer p { margin: 0; }

/* --- buttons, links, fields ------------------------------------------------------------------------------- */

.btn, button.btn, .form button[type=submit] {
  display: inline-block; height: 22px; padding: 0 9px; line-height: 20px; margin: 0;
  font: 700 11px/20px var(--sans); color: #f0e8cc; text-align: center; text-decoration: none; cursor: pointer;
  background: #1c3560; border: solid #1c3560; border-width: 0 9px;
  border-image: url(/assets/ui/button.png) 0 9 0 9 fill / 0 9px 0 9px stretch;
  text-shadow: 0 1px 1px #000;
}
.btn.go, .form button[type=submit] { background: #1c5a2c; border-color: #1c5a2c; border-image-source: url(/assets/ui/button_green.png); }
.btn:hover { filter: brightness(1.25); text-decoration: none; color: #fff; }
.form .btn, .form button[type=submit] { margin: 4px 0 8px; }
.form.inline .btn, .form.inline button[type=submit] { margin: 0 0 1px; }
.btn:disabled, button:disabled { filter: grayscale(.8) brightness(.7); cursor: default; }
.btn:focus-visible, .tab:focus-visible, .pick-row:focus-visible, .roster-row:focus-visible, .slot:focus-visible, input:focus, select:focus {
  outline: 1px dotted var(--gold); outline-offset: 1px;
}
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--link); cursor: pointer; }
button.link:hover { color: #cfe0ff; text-decoration: underline; }

input, select, textarea {
  font: 12px var(--sans); color: var(--ink); background: var(--field); color-scheme: dark;
  border: 1px solid #6b6552; border-top-color: #3a372c; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7);
  padding: 4px 8px; height: 28px; min-width: 0;
}
input:focus { border-color: var(--gold-dark); outline: 0; box-shadow: inset 0 1px 3px rgba(0, 0, 0, .7), 0 0 0 1px var(--gold-dark); }
input[type=number] { width: 90px; }
input[type=search] { width: 200px; }
select {
  appearance: none; -webkit-appearance: none; height: 27px; padding: 0 28px 0 10px; line-height: 25px; background: #16294c;
  border: solid #16294c; border-width: 0 22px 0 8px; box-shadow: none;
  border-image: url(/assets/ui/combo.png) 0 22 0 8 fill / 0 22px 0 8px stretch; cursor: pointer; max-width: 100%;
}
select option, select optgroup { background: #12141c; color: var(--ink); }

.form label { display: block; margin: 0 0 12px; color: var(--muted); }
.form label > input, .form label > select { display: block; margin-top: 3px; width: 100%; }
.form label > select { width: auto; min-width: 180px; }
.form label > input[type=number] { width: 110px; }
.form-error { color: var(--bad); margin: 0 0 6px; }
.form.inline { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 14px; margin-top: 8px; }
.form.inline label { margin: 0; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; }
.row > input, .row > select { margin: 0; width: auto; }
.toolbar { margin: 4px 0 10px; }
.one-time { color: var(--gold); font-family: Consolas, monospace; word-break: break-all; margin: 8px 0 0; }

.links { list-style: none; margin: 8px 0 0; padding: 0; }
.links li { padding: 2px 0; }

/* --- tables ----------------------------------------------------------------------------------------------- */

table { border-collapse: collapse; width: 100%; }
table.list { border: 1px solid #4b4636; }
table.list th {
  text-align: left; padding: 8px 14px; color: var(--gold); font: 700 11px var(--sans); letter-spacing: .6px; text-transform: uppercase;
  background: linear-gradient(#34322a, #1d1c16); border-bottom: 1px solid #8b8466;
}
table.list td { padding: 10px 14px; border-top: 1px solid #25221b; vertical-align: top; }
table.list tbody tr:first-child td { border-top: 0; }
table.list tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .03); }
table.list tbody tr:hover td { background: rgba(159, 194, 245, .08); }
table.list.pairs td:first-child { width: 27%; }
table.facts th { text-align: left; width: 46%; padding: 3px 8px 3px 0; color: var(--muted); font-weight: 400; vertical-align: top; }
table.facts td { padding: 3px 0; }
table.facts tr + tr th, table.facts tr + tr td { border-top: 1px solid #25221b; }
table.facts + table.list { margin-top: 18px; }
table.cmds { table-layout: fixed; }
table.cmds th:first-child { width: 42%; }
table.cmds code { white-space: normal; word-break: break-word; }
.group { margin-bottom: 14px; }
.group h3 { font-size: 14px; margin: 10px 0 5px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); }

.tag { color: var(--gold-dark); font-size: 10px; font-style: italic; border: 1px solid #5c4b25; padding: 0 5px; background: #17130a; }
.status.pending { color: var(--gold); }
.status.applied, .status.delivered { color: var(--good); }
.status.cancelled, .status.failed, .status.refused { color: var(--bad); }

.realm-line { font-size: 13px; margin-bottom: 4px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: #756f5c; border: 1px solid #000; }
.dot.on { background: #53d36a; box-shadow: 0 0 6px #53d36a; }

.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; min-height: 30px; margin-bottom: 16px; padding-left: 44px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; text-align: center; font: 700 15px/28px var(--serif);
  color: var(--gold); background: linear-gradient(#403d32, #1d1b16); border: 1px solid #8b8466; border-radius: 50%;
}
.steps li b { font-size: 14px; color: #f0e8cc; }
.steps li p { margin: 2px 0 0; color: #c9c2ac; }
.download { margin-top: 8px; }
.download .btn { display: inline-block; }
.download .small { font-size: 11px; margin-top: 6px; }
.news { margin: 0; padding: 0 10px 0 0; list-style: none; max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #8a6d2f #0b0b10; }
.news:focus-visible { outline: 1px solid #8a6d2f; outline-offset: 2px; }
.news-admin .news-row { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.news-admin .news-row p { margin: 2px 0 0; color: #c9c2ac; }
.news-admin .news-row .row { flex-shrink: 0; margin: 0; }
.news-admin .news-list { max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.news-admin textarea { display: block; width: 100%; min-height: 70px; margin-top: 3px; resize: vertical; }
.news-admin .count { color: var(--muted); font-size: 11px; }
.news li { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(168, 135, 58, .25); }
.news li:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.news b { color: #f0e8cc; font-size: 14px; }
.news-date { color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.news p { margin: 2px 0 0; color: #c9c2ac; }

.checks { list-style: none; margin: 0 0 8px; padding: 0; color: var(--muted); }
.checks li::before { content: '\25CB  '; }
.checks li.ok { color: var(--good); }
.checks li.ok::before { content: '\25CF  '; }
.strength-row { display: flex; align-items: center; gap: 10px; margin: -2px 0 8px; }
.strength { display: flex; gap: 3px; }
.strength i { width: 28px; height: 6px; background: #26231b; border: 1px solid #000; }
.strength.level-0 i:nth-child(-n+1) { background: #c0392b; }
.strength.level-1 i:nth-child(-n+2) { background: #d68a2a; }
.strength.level-2 i:nth-child(-n+3) { background: #c2b52a; }
.strength.level-3 i:nth-child(-n+3), .strength.level-4 i { background: #4cae4c; }

/* --- game pictures: slots, drawings, dyes ---------------------------------------------------------------------- */

.slot {
  position: relative; display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 52px; height: 52px; border-radius: 6px;
  background: url(/assets/ui/slot.png) center / 100% 100% no-repeat, #16130e;
}
.slot .art { width: 40px; height: 40px; object-fit: contain; }
.slot.skill .art { width: 46px; height: 46px; border-radius: 3px; }
.slot.skill .initial { font: 700 20px var(--serif); color: var(--gold); }
.slot.elite { box-shadow: 0 0 0 2px #d9b84a, 0 0 9px 1px rgba(217, 184, 74, .7); }
.slot.empty { opacity: .8; }
.slot .qty {
  position: absolute; right: 3px; bottom: 1px; font: 700 11px/1 var(--sans); color: #fff;
  text-shadow: 1px 0 #000, -1px 0 #000, 0 1px #000, 0 -1px #000;
}
.slot .dyes { position: absolute; left: 3px; bottom: 3px; display: flex; gap: 1px; }
.glyph { width: 30px; height: 30px; fill: none; stroke: #b9a46a; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.mini-slot {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: none;
  background: url(/assets/ui/slot.png) center / 100% 100% no-repeat, #16130e;
}
.mini-slot .art { width: 30px; height: 30px; object-fit: contain; }
.mini-slot .glyph { width: 24px; height: 24px; }

.dye { display: inline-block; width: 9px; height: 9px; margin-left: 2px; border: 1px solid #000; vertical-align: middle; background: #888; }
.dye.blue { background: #2f6ad6; } .dye.green { background: #3aa84a; } .dye.purple { background: #8a45c4; }
.dye.red { background: #c93a30; } .dye.yellow { background: #e0c23a; } .dye.brown { background: #7a4a24; }
.dye.orange { background: #e08a2a; } .dye.silver { background: #b8bcc4; } .dye.black { background: #15151a; }
.dye.gray { background: #75757c; } .dye.white { background: #f1f1ec; } .dye.pink { background: #e55aa0; }

.meter { height: 12px; margin: 6px 0; border: 1px solid #6b6552; background: #07070a; padding: 1px; }
.meter-bar { height: 100%; width: var(--fill, 0%); background: linear-gradient(#6d9ae0, #2c5aa2); }

/* --- characters ---------------------------------------------------------------------------------------------- */

.chars { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; align-items: start; }
.roster { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); background: #08080b; }
.roster-row {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; cursor: pointer; text-align: left;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid #231f18; border-left: 3px solid var(--prof, transparent); font: 12px var(--sans);
}
.roster li:last-child .roster-row { border-bottom: 0; }
.roster-row:hover { background: rgba(159, 194, 245, .08); }
.roster-row.on { background: linear-gradient(90deg, #26324f, #161c2c); }
.roster-row .who { display: flex; flex-direction: column; min-width: 0; }
.roster-row .who b { color: #f0e8cc; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.emblem { display: inline-block; vertical-align: middle; object-fit: contain; }
.emblem.tiny { width: 16px; height: 16px; margin: 0 5px 0 2px; }
.emblem.small { width: 32px; height: 32px; }
.emblem.big { width: 84px; height: 84px; }
.emblem.blank { text-align: center; color: var(--gold); font: 700 14px var(--serif); line-height: inherit; }

.sheet-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 8px; }
.sheet-head > div:last-child { flex: 1; min-width: 0; }
.sheet-head h3 { font-size: 20px; margin-bottom: 2px; }
.profession-line { margin-bottom: 6px; color: #d9d2bc; }
.portrait {
  display: flex; align-items: center; justify-content: center; width: 112px; height: 112px; flex: none; border-radius: 6px;
  background: url(/assets/ui/slot.png) center / 100% 100% no-repeat, radial-gradient(circle at 50% 38%, #2a3350, #0d0e14 72%);
}
.sheet h4 { font-size: 14px; margin: 14px 0 6px; padding-bottom: 2px; border-bottom: 1px solid var(--rule); }
.sheet .portrait { box-shadow: 0 0 14px color-mix(in srgb, var(--prof, transparent) 35%, transparent); }

/* Each profession's colour, set once: the roster edge, the portrait glow and the profession strip read --prof. */
.prof-warrior { --prof: #d6a03c; } .prof-ranger { --prof: #78b432; } .prof-monk { --prof: #6ab0e0; }
.prof-necromancer { --prof: #58a070; } .prof-mesmer { --prof: #a060c0; } .prof-elementalist { --prof: #d05030; }
.prof-assassin { --prof: #c040a0; } .prof-ritualist { --prof: #40b0c0; } .prof-paragon { --prof: #d8a030; }
.prof-dervish { --prof: #8090b0; }

/* The ten professions under the menu: an emblem over its name, lit in the profession's colour. */
.professions { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.professions li {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 8px 2px 9px; cursor: default;
  border-bottom: 2px solid var(--prof, var(--rule));
  background: linear-gradient(transparent 35%, color-mix(in srgb, var(--prof, transparent) 14%, transparent));
}
.professions li:hover { background: linear-gradient(transparent 10%, color-mix(in srgb, var(--prof, transparent) 28%, transparent)); }
.emblem.strip { width: 46px; height: 46px; filter: drop-shadow(0 2px 3px #000); }
.emblem.strip.blank { display: flex; align-items: center; justify-content: center; font-size: 22px; border: 1px solid var(--prof); border-radius: 50%; }
.professions .name { font: 700 10px/1.1 var(--sans); letter-spacing: .6px; text-transform: uppercase; color: #cfc8b2; }
.professions li:hover .name { color: var(--prof); }

.skillbar { display: grid; grid-template-columns: repeat(auto-fill, 58px); gap: 4px; justify-content: start; }
.skill-cell { display: flex; flex-direction: column; align-items: center; gap: 2px; width: 58px; }
.skill-name { font-size: 10px; line-height: 1.2; color: var(--muted); text-align: center; height: 24px; overflow: hidden; }
.gear { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.gear h4 { margin-top: 0; }
.gear-row { display: flex; align-items: center; gap: 9px; margin-bottom: 5px; }
.gear-text { display: flex; flex-direction: column; min-width: 0; }
.gear-text b { color: #f0e8cc; }

/* --- storage window ---------------------------------------------------------------------------------------------- */

.storage .tabs.small .tab { padding: 0 8px; min-width: 28px; }
.storage .tabs.small .tab.wide { padding: 0 12px; }
.storage-body { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 22px; align-items: start; }
.grid-slots { display: grid; grid-template-columns: repeat(5, 52px); gap: 4px; padding: 10px; background: #06060a; border: 1px solid #4b4636; }
.storage-info h4 { font-size: 14px; margin: 0 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--rule); }
.storage-info .muted { margin-top: 10px; }

/* --- administrator pick lists --------------------------------------------------------------------------------------- */

.picker { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.pick-side .row { margin: 0 0 8px; }
.pick-list { height: 340px; overflow-y: auto; border: 1px solid var(--rule); background: #08080b; margin-bottom: 8px; }
.pick-row {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 3px 7px; cursor: pointer; text-align: left;
  color: var(--ink); background: none; border: 0; border-bottom: 1px solid #1d1a14; font: 12px var(--sans);
}
.pick-row:hover { background: rgba(159, 194, 245, .1); }
.pick-row.on { background: linear-gradient(90deg, #26324f, #161c2c); }
.pick-name { display: flex; flex-direction: column; min-width: 0; }
.pick-name b { color: #f0e8cc; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-detail .chosen { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.pick-detail .chosen div { display: flex; flex-direction: column; }
.pick-detail .chosen b { color: var(--gold); font-size: 14px; font-family: var(--serif); }
.pick-detail label { display: block; margin-bottom: 9px; color: var(--muted); }
.pick-detail input { margin-top: 3px; }
.pick-detail .row input { margin: 0; }
.pick-detail label > input:not([type=number]) { display: block; width: 100%; }

/* --- tooltip, notices ---------------------------------------------------------------------------------------------- */

#tip {
  position: fixed; z-index: 50; max-width: 300px; padding: 7px 10px; pointer-events: none; font-size: 12px;
  background: rgba(5, 6, 10, .96); border: 1px solid #cfc7aa; box-shadow: 0 3px 12px #000;
}
#tip .tip-name { display: block; color: var(--gold); font: 700 13px var(--serif); }
#tip .tip-line { color: var(--muted); }
#tip .dye { width: 10px; height: 10px; }

#notice { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 40; margin: 0; max-width: min(92vw, 640px); }
.toast { padding: 7px 16px; background: #10213f; border: 1px solid #8b8466; color: #f0e8cc; box-shadow: 0 3px 14px #000; }
.toast.error { background: #3a1511; border-color: #b05a4c; color: #ffd8d0; }

@media (max-width: 940px) {
  .chars { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .cols, .picker, .gear, .account, .storage-body { grid-template-columns: minmax(0, 1fr); }
  .masthead { flex-direction: column; align-items: flex-start; }
  .brand-name { font-size: 30px; }
  .professions { grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 12px; }
  .menu a { padding: 0 14px; }
  .menu a.right { margin-left: 0; }
  .sheet-head { flex-direction: column; }
  table.list { display: block; overflow-x: auto; }
  input[type=search] { width: 100%; }
}
