/* Tema "PC anos 2000" (2026-11-15): janelas cinza com bordas em relevo, barras de título azul-marinho em degradê,
   botões biselados, área de trabalho verde-água. Estilo apenas (sem logos). Tema anterior: amarelo/azul WordArt. */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');
[hidden] { display: none !important; }
:root {
  --face: #c0c0c0; --light: #ffffff; --shadow: #808080; --dark: #000000; --hilite: #dfdfdf;
  --title1: #000080; --title2: #1084d0; --desk: #008080; --sel: #000080;
  --text: #000; --muted: #444; --line: #808080; --card: #c0c0c0; --bg2: #fff;
  --ok: #006400; --bad: #b00000;
  /* legacy names used by the pages */
  --pink: #000080; --gold: #000080; --cyan: #000080; --navy: #000080; --blue: #000080;
  --raised: inset -1px -1px var(--dark), inset 1px 1px var(--light), inset -2px -2px var(--shadow), inset 2px 2px var(--hilite);
  --sunken: inset -1px -1px var(--light), inset 1px 1px var(--shadow), inset -2px -2px var(--hilite), inset 2px 2px var(--dark);
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font-family: Tahoma, Verdana, "Segoe UI", "DejaVu Sans", sans-serif; font-size: 15px; }
body { min-height: 100vh; background: var(--desk); }
a { color: #0000ee; }
h1, h2, h3 { margin: 0 0 .5em; }

/* page title = a big window title bar */
.wrap > h1 {
  display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 8px 10px;
  background: linear-gradient(90deg, var(--title1), var(--title2)); color: #fff; font-size: 1.35rem; font-weight: bold;
  box-shadow: 0 0 0 2px var(--face), var(--raised), 0 0 0 4px var(--dark);
}
.wrap > h1::before { content: "🎤"; font-size: 1.3rem; }
.wrap > h1::after { content: "_ □ ✕"; margin-left: auto; flex: none; white-space: nowrap; font-size: .8rem; letter-spacing: 6px; background: var(--face); color: #000; padding: 2px 6px; box-shadow: var(--raised); font-weight: bold; }
.brand, .wordart { font-weight: bold; color: inherit; }

.wrap { max-width: 720px; margin: 0 auto; padding: 14px; }

/* windows */
.card { background: var(--face); box-shadow: var(--raised); padding: 3px 12px 12px; margin-bottom: 14px; }
.card > h2:first-child, .card > h3:first-child, .card > .tbar {
  margin: 0 -9px 10px; padding: 4px 8px; font-size: .95rem; font-weight: bold; color: #fff;
  background: linear-gradient(90deg, var(--title1), var(--title2)); display: flex; align-items: center; gap: 6px;
}
.card > h2:first-child::after, .card > h3:first-child::after {
  content: "✕"; margin-left: auto; width: 18px; height: 16px; display: grid; place-items: center; font-size: .7rem;
  background: var(--face); color: #000; box-shadow: var(--raised);
}
label { display: block; font-size: .9rem; margin: 10px 0 4px; }
input, textarea, select {
  width: 100%; padding: 6px 7px; border: 0; border-radius: 0; background: #fff; color: #000;
  box-shadow: var(--sunken); font-size: 16px; font-family: inherit;
}
input:focus, textarea:focus { outline: 1px dotted #000; outline-offset: -5px; }
textarea { min-height: 160px; resize: vertical; }
button {
  font: inherit; color: #000; background: var(--face); border: 0; border-radius: 0; padding: 7px 16px; min-width: 75px; cursor: pointer;
  box-shadow: var(--raised);
}
button:active { box-shadow: var(--sunken); padding: 8px 15px 6px 17px; }
button:focus-visible { outline: 1px dotted #000; outline-offset: -5px; }
button.primary { font-weight: bold; box-shadow: 0 0 0 1px #000, var(--raised); }
button.primary:active { box-shadow: 0 0 0 1px #000, var(--sunken); }
button.small { padding: 3px 8px; min-width: 0; font-size: .85rem; }
button.danger { color: var(--bad); font-weight: bold; }
button:disabled { color: var(--shadow); text-shadow: 1px 1px var(--light); cursor: default; }
.muted { color: var(--muted); }
.err { color: var(--bad); font-weight: bold; }
.okc { color: var(--ok); font-weight: bold; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
/* list boxes */
.list { list-style: none; padding: 2px; margin: 0; background: #fff; box-shadow: var(--sunken); }
.list:empty { display: none; }
.list li { display: flex; gap: 8px; align-items: center; padding: 6px; border-bottom: 1px dotted #c0c0c0; }
.list li:last-child { border-bottom: 0; }
.list li.youli, .list li:hover { background: var(--sel); color: #fff; }
.list li.youli .muted, .list li:hover .muted { color: #dde; }
.pos { width: 26px; height: 22px; display: grid; place-items: center; flex: none; font-size: .8rem; font-weight: bold; background: var(--face); box-shadow: var(--raised); color: #000; }
.ttl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { width: 64px; height: 36px; object-fit: cover; flex: none; background: #000; box-shadow: var(--sunken); padding: 2px; }
.pill { display: inline-block; padding: 1px 8px; background: var(--face); color: #000; font-size: .8rem; font-weight: bold; box-shadow: var(--sunken); vertical-align: middle; }
/* status bar / group box helpers */
.status { display: flex; gap: 4px; margin-top: 10px; font-size: .85rem; }
.status > * { flex: 1; padding: 2px 6px; box-shadow: inset -1px -1px var(--light), inset 1px 1px var(--shadow); }
details summary { cursor: pointer; }
/* catalog picker (static/picker.js) */
.picker-modal { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); display: grid; place-items: center; z-index: 70; padding: 12px; }
.picker-win { width: min(560px, 100%); max-height: calc(100% - 8px); display: flex; flex-direction: column; margin: 0; }
.picker-win .tbar { display: flex; }
.xbtn { margin-left: auto; width: 20px; height: 18px; min-width: 0; padding: 0; font-size: .7rem; font-weight: bold; line-height: 1; display: grid; place-items: center; }
.xbtn:active { padding: 0; }
.pk-q { margin-bottom: 8px; }
.pk-langs { margin-bottom: 8px; }
.pk-langs .sel { box-shadow: var(--sunken); background: #dfdfdf; font-weight: bold; }
.pk-list { flex: 1; min-height: 120px; overflow-y: auto; }
.pk-item { cursor: pointer; }
.pk-flag { flex: none; }
.pk-pages { margin-top: 8px; }
.picked { margin-top: 6px; padding: 4px 8px; background: #ffffe1; border: 1px solid #000; font-size: .9rem; }
.picker-win > *, .pk-list, .pk-list li { min-width: 0; }   /* nowrap titles must not widen the window on phones */
.picker-win { width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); }
.picker-modal { display: flex; align-items: center; justify-content: center; }
