/* =========================================================================
   Elsewhere Online — era themes. Loaded after styles.css on every page.
   "Today" is the default look in styles.css. Each era theme is scoped to
   html[data-theme="..."] and ignores the system dark mode on purpose.
   ========================================================================= */

/* ---------- Theme picker (all themes) ---------- */
.theme-picker { position: fixed; left: 14px; bottom: 14px; z-index: 50; }
.theme-fab {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
  box-shadow: var(--shadow); opacity: .75; transition: opacity .15s ease;
  display: inline-flex; align-items: center; justify-content: center; padding: 0;
}
.theme-fab:hover, .theme-fab[aria-expanded="true"] { opacity: 1; color: var(--ink); }
.theme-menu {
  position: absolute; left: 0; bottom: 46px; width: 230px; padding: 8px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.theme-menu-head { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 4px 6px 8px; }
.theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border: 0; border-radius: 8px;
  background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.theme-menu button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.theme-menu button[aria-checked="true"] { outline: 2px solid var(--accent); outline-offset: -2px; }
.theme-txt { display: flex; flex-direction: column; line-height: 1.2; }
.theme-txt small { color: var(--muted); font-size: 12px; }
.theme-swatch { width: 34px; height: 26px; border-radius: 6px; flex: none; border: 1px solid rgba(0,0,0,.15); }
.sw-today { background: linear-gradient(135deg, #eef2ec 50%, #2d6a43 50%); }
.sw-y90 { background: repeating-linear-gradient(45deg, #000 0 4px, #ffd800 4px 8px); border-radius: 0; }
.sw-y2k { background: linear-gradient(#9fd2ff 0%, #2e8fdf 50%, #1a74c4 51%, #7cc242 100%); border-radius: 8px; }
.sw-y10 { background: linear-gradient(90deg, #1abc9c 0 33%, #2c3e50 33% 66%, #e74c3c 66%); border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { html[data-theme] * { animation: none !important; } }


/* =========================================================================
   1990s — starfield, bevelled grey windows, Times New Roman, under construction
   ========================================================================= */
html[data-theme="y90"] {
  color-scheme: light;
  --bg: #000010; --surface: #c0c0c0; --ink: #000; --muted: #303030; --line: #808080;
  --accent: #0000ee; --accent-ink: #fff; --ok: #008000; --danger: #c00000; --radius: 0; --shadow: none;
}
html[data-theme="y90"] body {
  font-family: "Times New Roman", Times, serif; font-size: 17px; color: #fff;
  background-color: #000010;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 90px 120px, #ffd 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 160px 60px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 230px 170px, #aaf 50%, transparent 51%),
    radial-gradient(1px 1px at 60px 200px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 130px 15px, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 200px 100px, #ffa 50%, transparent 51%),
    radial-gradient(1px 1px at 10px 140px, #cff 50%, transparent 51%),
    radial-gradient(1px 1px at 110px 75px, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 180px 215px, #fff 50%, transparent 51%);
  background-size: 260px 230px;
}
html[data-theme="y90"] .muted { color: #c8c8c8; }
html[data-theme="y90"] a { color: #00ffff; }
html[data-theme="y90"] a:visited { color: #ff80ff; }

/* Title bar header + construction stripe */
html[data-theme="y90"] .topbar {
  background: linear-gradient(90deg, #000080, #1084d0); border-bottom: 0; position: relative; padding: 8px 16px;
}
html[data-theme="y90"] .topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px;
  background: repeating-linear-gradient(45deg, #000 0 12px, #ffd800 12px 24px);
}
html[data-theme="y90"] .brand { color: #fff; font-family: "Arial Black", Arial, sans-serif; letter-spacing: .02em; }
html[data-theme="y90"] .brand::after {
  content: "NEW!"; font-family: "Comic Sans MS", "Comic Sans", cursive; font-size: 12px; color: #ff0;
  background: #f00; padding: 1px 5px; transform: rotate(-8deg); animation: y90-blink 1s steps(1) infinite;
}
@keyframes y90-blink { 50% { visibility: hidden; } }
html[data-theme="y90"] nav a { color: #fff; text-decoration: underline; }
html[data-theme="y90"] nav a:hover, html[data-theme="y90"] nav .link { color: #ff0; }
html[data-theme="y90"] .badge { color: #000; background: #ff0; border: 1px solid #000; border-radius: 0; }
html[data-theme="y90"] main:not(.dframe-wrap) { padding-top: 40px; }

/* Headings */
html[data-theme="y90"] h1 {
  font-family: "Comic Sans MS", "Comic Sans", cursive; color: #ff0; text-shadow: 3px 3px 0 #f0f; letter-spacing: 0;
}
html[data-theme="y90"] h2, html[data-theme="y90"] h3 { font-family: Arial, Helvetica, sans-serif; }

/* Bevelled grey "windows" */
html[data-theme="y90"] .interests-box, html[data-theme="y90"] .card-sec, html[data-theme="y90"] .tile,
html[data-theme="y90"] .mod-item, html[data-theme="y90"] .fav-card, html[data-theme="y90"] dialog,
html[data-theme="y90"] .theme-menu, html[data-theme="y90"] .dpanel {
  background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff;
  border-radius: 0; box-shadow: 1px 1px 0 #000;
}
html[data-theme="y90"] .interests-box h2, html[data-theme="y90"] .card-sec h2,
html[data-theme="y90"] .dpanel h4, html[data-theme="y90"] .theme-menu-head {
  background: linear-gradient(90deg, #000080, #1084d0); color: #fff; margin: -20px -22px 12px; padding: 4px 8px;
  font: bold 15px Arial, Helvetica, sans-serif; text-transform: none; letter-spacing: 0;
}
html[data-theme="y90"] .dpanel h4 { margin: -16px -16px 12px; }
html[data-theme="y90"] .theme-menu-head { margin: -8px -8px 6px; }
html[data-theme="y90"] .interests-box .muted, html[data-theme="y90"] .card-sec .muted,
html[data-theme="y90"] .mod-item .muted, html[data-theme="y90"] .fav-card .muted,
html[data-theme="y90"] .tile-l, html[data-theme="y90"] .theme-txt small, html[data-theme="y90"] .dpanel .muted { color: #303030; }
html[data-theme="y90"] .card-sec a:not(.btn), html[data-theme="y90"] .mod-item a:not(.btn), html[data-theme="y90"] .fav-card a:not(.btn),
html[data-theme="y90"] .interests-box a:not(.btn), html[data-theme="y90"] .subs td a, html[data-theme="y90"] .dhint a { color: #0000ee; text-decoration: underline; }
html[data-theme="y90"] .card-sec .sec-head {
  background: linear-gradient(90deg, #000080, #1084d0); margin: -20px -22px 12px; padding: 4px 8px;
}
html[data-theme="y90"] .card-sec .sec-head h2 { margin: 0; padding: 0; background: none; }
html[data-theme="y90"] .sec-head .btn { padding: 3px 10px; font-size: 13px; }
html[data-theme="y90"] .sec-head .tabs button { padding: 3px 8px; }

/* Buttons */
html[data-theme="y90"] .btn, html[data-theme="y90"] button.btn, html[data-theme="y90"] .chip,
html[data-theme="y90"] .vote, html[data-theme="y90"] .tabs button, html[data-theme="y90"] .theme-fab {
  background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0;
  font-family: Arial, Helvetica, sans-serif; box-shadow: 1px 1px 0 #000;
}
html[data-theme="y90"] .btn:active, html[data-theme="y90"] .chip:active, html[data-theme="y90"] .theme-fab:active,
html[data-theme="y90"] .chip.on, html[data-theme="y90"] .tabs button.active {
  border-color: #404040 #fff #fff #404040; box-shadow: none;
}
html[data-theme="y90"] .chip.on, html[data-theme="y90"] .tabs button.active { background: #000080; color: #fff; }
html[data-theme="y90"] .btn.primary { background: #c0c0c0; color: #000; font-weight: bold; }
html[data-theme="y90"] .btn.danger { color: #c00000; }
html[data-theme="y90"] .btn.ok { color: #008000; }
html[data-theme="y90"] .theme-fab { opacity: 1; font-size: 16px; }
html[data-theme="y90"] .discover-btn {
  font-family: "Arial Black", Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em;
  background: #c0c0c0; color: #000; border: 3px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0;
  box-shadow: 2px 2px 0 #000; transform: none;
}
html[data-theme="y90"] .discover-btn:hover { transform: none; color: #000080; }
html[data-theme="y90"] .discover-btn:active { border-color: #404040 #fff #fff #404040; box-shadow: none; }
html[data-theme="y90"] .discover-btn::after { content: " >>"; }

/* Form fields: sunken */
html[data-theme="y90"] input, html[data-theme="y90"] select, html[data-theme="y90"] textarea {
  background: #fff; color: #000; border: 2px solid; border-color: #404040 #fff #fff #404040; border-radius: 0;
  font-family: "Courier New", monospace;
}
html[data-theme="y90"] .form label { color: inherit; font-family: Arial, Helvetica, sans-serif; }
html[data-theme="y90"] main > section > .form label, html[data-theme="y90"] #view-submit p, html[data-theme="y90"] #view-login p { color: #fff; }

/* Visitor-counter numbers */
html[data-theme="y90"] .tile-n {
  font-family: "Courier New", monospace; color: #0f0 !important; background: #000; padding: 2px 8px;
  align-self: flex-start; letter-spacing: .15em; border: 2px inset #808080;
}
html[data-theme="y90"] .count { background: #000; color: #0f0; border-radius: 0; font-family: "Courier New", monospace; }

/* Odds and ends */
html[data-theme="y90"] .tag { background: #ff0; color: #000; border-radius: 0; border: 1px solid #000; }
html[data-theme="y90"] .status { border-radius: 0; border: 1px solid #000; }
html[data-theme="y90"] .footer { border-top: 0; color: #fff; }
html[data-theme="y90"] .footer::before {
  content: ""; display: block; height: 4px; margin: -20px -16px 16px;
  background: linear-gradient(90deg, red, orange, yellow, lime, cyan, blue, violet);
}
html[data-theme="y90"] .footer::after { content: " · Best viewed at 800×600"; }
html[data-theme="y90"] #toast { background: #ffffe1; color: #000; border: 1px solid #000; border-radius: 0; font-family: Arial, sans-serif; }
html[data-theme="y90"] #toast.error { background: #c00000; color: #fff; }
html[data-theme="y90"] #toast.ok { background: #008000; color: #fff; }
html[data-theme="y90"] .subs th, html[data-theme="y90"] .audit th { color: #000; font-family: Arial, sans-serif; }
html[data-theme="y90"] .audit td, html[data-theme="y90"] .audit th { border-color: #808080; }
html[data-theme="y90"] .tabs { border-bottom: 0; }
html[data-theme="y90"] .meter-bar { background: #fff; border: 1px inset #808080; border-radius: 0; }
html[data-theme="y90"] .meter-bar::after { border-radius: 0; }
html[data-theme="y90"] .pw-rules { color: #303030; }

/* Discover toolbar: a 90s browser toolbar */
html[data-theme="y90"] .dbar {
  background: #c0c0c0; color: #000; border-bottom: 2px solid #404040; box-shadow: inset 0 -1px 0 #808080, inset 0 1px 0 #fff;
}
html[data-theme="y90"] .dbar-domain { color: #303030; }
html[data-theme="y90"] .dbtn, html[data-theme="y90"] .dbtn.ghost {
  background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0;
  font-family: Arial, Helvetica, sans-serif;
}
html[data-theme="y90"] .dbtn:hover, html[data-theme="y90"] .dbtn.ghost:hover { background: #d4d0c8; color: #000; }
html[data-theme="y90"] .dbtn.on, html[data-theme="y90"] .dbtn:active { border-color: #404040 #fff #fff #404040; }
html[data-theme="y90"] .dbtn.vote-up.on { background: #008000; color: #fff; }
html[data-theme="y90"] .dbtn.vote-down.on { background: #c00000; color: #fff; }
html[data-theme="y90"] .dbtn.star.on { color: #c08000; }
html[data-theme="y90"] .dbtn.go { background: #000080; color: #fff; font-weight: bold; }
html[data-theme="y90"] .dpanel .chip { background: #c0c0c0; color: #000; }
html[data-theme="y90"] .dpanel .chip.on { background: #000080; color: #fff; }
html[data-theme="y90"] .dpanel input { background: #fff; color: #000; }
html[data-theme="y90"] .dhint { background: #ffffe1; color: #000; border-bottom: 1px solid #000; font-family: Arial, sans-serif; }


/* =========================================================================
   2000s — glossy Web 2.0: gradients, pinstripes, reflections, "beta"
   ========================================================================= */
html[data-theme="y2k"] {
  color-scheme: light;
  --bg: #f3f7fb; --surface: #fff; --ink: #1d2b3a; --muted: #5d6f82; --line: #c5d3e2;
  --accent: #1a74c4; --accent-ink: #fff; --ok: #4e9a06; --danger: #d0261b; --radius: 10px;
  --shadow: 0 2px 6px rgba(20, 60, 100, .18);
}
html[data-theme="y2k"] body {
  font-family: "Lucida Grande", "Trebuchet MS", Verdana, Tahoma, sans-serif; font-size: 15px;
  background: repeating-linear-gradient(135deg, #f7fafd 0 3px, #eaf1f8 3px 6px);
}
html[data-theme="y2k"] .topbar {
  background: linear-gradient(#6cbcf5 0%, #2e8fdf 50%, #1a74c4 51%, #3c9be6 100%);
  border-bottom: 1px solid #0f4f8a; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
html[data-theme="y2k"] .brand { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.4); font-family: "Trebuchet MS", sans-serif; }
html[data-theme="y2k"] .brand::after {
  content: "beta"; font-size: 11px; font-weight: bold; color: #fff; padding: 1px 6px; border-radius: 3px;
  background: linear-gradient(#ffb340, #ff7f00); box-shadow: 0 1px 2px rgba(0,0,0,.3); text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
html[data-theme="y2k"] nav a { color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.35); }
html[data-theme="y2k"] nav a:hover { color: #fffbcc; }
html[data-theme="y2k"] nav .link { color: #fffbcc; }
html[data-theme="y2k"] .badge { background: linear-gradient(#fff, #e6eef6); color: #1a74c4; border-color: #9fb9d3; }

html[data-theme="y2k"] h1 { color: #1a5d9e; text-shadow: 0 1px 0 #fff, 0 2px 3px rgba(26, 116, 196, .25); letter-spacing: -0.02em; }
html[data-theme="y2k"] h2 { color: #1a5d9e; text-shadow: 0 1px 0 #fff; }

/* Rounded glossy panels */
html[data-theme="y2k"] .interests-box, html[data-theme="y2k"] .card-sec, html[data-theme="y2k"] .tile,
html[data-theme="y2k"] .mod-item, html[data-theme="y2k"] .fav-card, html[data-theme="y2k"] .theme-menu, html[data-theme="y2k"] dialog {
  background: linear-gradient(#ffffff, #f2f7fc); border: 1px solid #b9cde2; border-radius: 12px;
  box-shadow: 0 2px 8px rgba(20, 60, 100, .15), inset 0 1px 0 #fff;
}
html[data-theme="y2k"] .tile { background: linear-gradient(#fdfeff, #e3edf7); }
html[data-theme="y2k"] .tile-n { color: #1a74c4; text-shadow: 0 1px 0 #fff; }
html[data-theme="y2k"] .tile-n.ok { color: #4e9a06; }
html[data-theme="y2k"] .tile-n.bad { color: #d0261b; }
html[data-theme="y2k"] .tile-n.warn { color: #e07b00; }

/* Glossy buttons */
html[data-theme="y2k"] .btn, html[data-theme="y2k"] button.btn, html[data-theme="y2k"] .vote, html[data-theme="y2k"] .theme-fab {
  background: linear-gradient(#ffffff 0%, #eef3f8 50%, #dde7f1 51%, #eef3f8 100%);
  border: 1px solid #9fb3c8; border-radius: 6px; color: #23415f; text-shadow: 0 1px 0 #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
html[data-theme="y2k"] .btn:hover { border-color: #6d8fb3; }
html[data-theme="y2k"] .btn.primary, html[data-theme="y2k"] .discover-btn {
  background: linear-gradient(#b5e36b 0%, #8cc63f 50%, #6fae22 51%, #8dd03a 100%);
  border: 1px solid #4f8a12; color: #fff; text-shadow: 0 -1px 0 rgba(0,0,0,.3);
}
html[data-theme="y2k"] .discover-btn {
  border-radius: 999px; font-family: "Trebuchet MS", sans-serif; font-weight: bold;
  box-shadow: 0 4px 10px rgba(79, 138, 18, .4), inset 0 1px 0 rgba(255,255,255,.6);
  -webkit-box-reflect: below 2px linear-gradient(transparent 55%, rgba(255,255,255,.35));
}
html[data-theme="y2k"] .discover-btn:hover { filter: brightness(1.06); }
html[data-theme="y2k"] .hero .discover-btn { margin-bottom: 44px; }
html[data-theme="y2k"] .btn.danger { color: #d0261b; }
html[data-theme="y2k"] .btn.ok { color: #4e9a06; }

/* Tag-cloud chips */
html[data-theme="y2k"] .chip {
  background: linear-gradient(#ffffff, #e4edf6); border: 1px solid #a9c1d9; color: #1a5d9e; border-radius: 999px;
  text-shadow: 0 1px 0 #fff;
}
html[data-theme="y2k"] .chip:nth-child(3n) { font-size: 16px; }
html[data-theme="y2k"] .chip:nth-child(4n+1) { font-size: 13px; }
html[data-theme="y2k"] .chip.on {
  background: linear-gradient(#ffb340 0%, #ff8a00 50%, #f07400 51%, #ff9a1f 100%); border-color: #c45f00; color: #fff;
  text-shadow: 0 -1px 0 rgba(0,0,0,.25);
}
html[data-theme="y2k"] input, html[data-theme="y2k"] select, html[data-theme="y2k"] textarea {
  border: 1px solid #a9c1d9; border-radius: 6px; box-shadow: inset 0 2px 3px rgba(0,0,0,.08); background: #fff;
}
html[data-theme="y2k"] input:focus, html[data-theme="y2k"] textarea:focus { outline: none; border-color: #3c9be6; box-shadow: 0 0 0 3px rgba(60,155,230,.25); }
html[data-theme="y2k"] .tag { background: linear-gradient(#ffeccc, #ffd699); color: #a35400; border: 1px solid #f0b660; }
html[data-theme="y2k"] .tabs { border-bottom: 2px solid #1a74c4; }
html[data-theme="y2k"] .tabs button { border-radius: 8px 8px 0 0; border: 1px solid transparent; border-bottom: 0; }
html[data-theme="y2k"] .tabs button.active {
  background: linear-gradient(#6cbcf5, #1a74c4); color: #fff; border-color: #0f4f8a; text-shadow: 0 -1px 0 rgba(0,0,0,.3);
}
html[data-theme="y2k"] .count { background: #ff8a00; color: #fff; }
html[data-theme="y2k"] .footer {
  background: linear-gradient(#f4f7fa, #dce5ee); border-top: 1px solid #b9cde2; color: #5d6f82;
}
html[data-theme="y2k"] .footer::after { content: " · Valid XHTML 1.0 · RSS"; }
html[data-theme="y2k"] #toast { border-radius: 8px; background: linear-gradient(#4a4a4a, #222); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
html[data-theme="y2k"] #toast.ok { background: linear-gradient(#8cc63f, #5f9b17); }
html[data-theme="y2k"] #toast.error { background: linear-gradient(#ef5a4f, #c4241a); }

/* Discover toolbar: glossy aqua bar */
html[data-theme="y2k"] .dbar {
  background: linear-gradient(#5a5a5a 0%, #3a3a3a 50%, #262626 51%, #3b3b3b 100%); border-bottom: 1px solid #000;
}
html[data-theme="y2k"] .dbtn, html[data-theme="y2k"] .dbtn.ghost {
  background: linear-gradient(#6a6a6a 0%, #4a4a4a 50%, #3a3a3a 51%, #4c4c4c 100%); color: #fff;
  border: 1px solid #1d1d1d; border-radius: 6px; box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
html[data-theme="y2k"] .dbtn.go { background: linear-gradient(#b5e36b 0%, #8cc63f 50%, #6fae22 51%, #8dd03a 100%); border-color: #4f8a12; }
html[data-theme="y2k"] .dbtn.vote-up.on { background: linear-gradient(#8fd14f, #4e9a06); }
html[data-theme="y2k"] .dbtn.vote-down.on { background: linear-gradient(#ef5a4f, #c4241a); }
html[data-theme="y2k"] .dbtn.star.on { color: #ffd23f; }
html[data-theme="y2k"] .dpanel { border-radius: 12px; background: linear-gradient(#4a4a4a, #262626); border: 1px solid #000; }
html[data-theme="y2k"] .dhint { background: #fffbcc; color: #6b5a00; border-bottom: 1px solid #e6d36b; }


/* =========================================================================
   2010s — flat design: flat UI colours, thin type, uppercase labels, ghost buttons
   ========================================================================= */
html[data-theme="y10"] {
  color-scheme: light;
  --bg: #ecf0f1; --surface: #fff; --ink: #2c3e50; --muted: #7f8c8d; --line: #dfe4e6;
  --accent: #1abc9c; --accent-ink: #fff; --ok: #27ae60; --danger: #e74c3c; --radius: 3px;
  --shadow: 0 1px 2px rgba(0,0,0,.08);
}
html[data-theme="y10"] body { font-family: "Helvetica Neue", "Segoe UI", Roboto, "Open Sans", Arial, sans-serif; background: #ecf0f1; }
html[data-theme="y10"] .topbar { background: #2c3e50; border-bottom: 0; }
html[data-theme="y10"] .brand { color: #fff; font-weight: 300; letter-spacing: .04em; text-transform: lowercase; font-size: 22px; }
html[data-theme="y10"] .brand img { border-radius: 50%; }
html[data-theme="y10"] nav a, html[data-theme="y10"] nav { color: #fff; text-transform: uppercase; font-size: 13px; letter-spacing: .1em; }
html[data-theme="y10"] nav a:hover { color: #1abc9c; }
html[data-theme="y10"] nav .link { color: #1abc9c; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }
html[data-theme="y10"] .badge { border-radius: 2px; text-transform: uppercase; letter-spacing: .08em; }

html[data-theme="y10"] h1 { font-weight: 300; letter-spacing: -0.01em; color: #2c3e50; }
html[data-theme="y10"] h2 { font-weight: 300; text-transform: uppercase; letter-spacing: .12em; font-size: 16px; color: #7f8c8d; }
html[data-theme="y10"] .hero h1 { font-size: clamp(32px, 6vw, 52px); }

html[data-theme="y10"] .interests-box, html[data-theme="y10"] .card-sec, html[data-theme="y10"] .mod-item,
html[data-theme="y10"] .fav-card, html[data-theme="y10"] .theme-menu, html[data-theme="y10"] dialog {
  background: #fff; border: 0; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
html[data-theme="y10"] .fav-card { background: #f7f9f9; }

/* Metro-style coloured tiles */
html[data-theme="y10"] .tile { border: 0; border-radius: 2px; color: #fff; background: #1abc9c; }
html[data-theme="y10"] .tile:nth-child(2) { background: #2ecc71; }
html[data-theme="y10"] .tile:nth-child(3) { background: #f39c12; }
html[data-theme="y10"] .tile:nth-child(4) { background: #e74c3c; }
html[data-theme="y10"] .tile:nth-child(5) { background: #3498db; }
html[data-theme="y10"] .tile:nth-child(6) { background: #9b59b6; }
html[data-theme="y10"] .tile:nth-child(7) { background: #34495e; }
html[data-theme="y10"] .tile-n, html[data-theme="y10"] .tile-n.ok, html[data-theme="y10"] .tile-n.warn,
html[data-theme="y10"] .tile-n.bad, html[data-theme="y10"] .star-n { color: #fff; font-weight: 300; font-size: 38px; }
html[data-theme="y10"] .tile-l { color: rgba(255,255,255,.85); text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }

/* Flat buttons with a darker bottom edge */
html[data-theme="y10"] .btn, html[data-theme="y10"] button.btn, html[data-theme="y10"] .vote, html[data-theme="y10"] .theme-fab {
  background: #fff; color: #2c3e50; border: 2px solid #bdc3c7; border-radius: 3px; box-shadow: none;
  text-transform: uppercase; letter-spacing: .06em; font-size: 13px;
}
html[data-theme="y10"] .theme-fab { border-radius: 50%; text-transform: none; font-size: 18px; }
html[data-theme="y10"] .btn:hover { border-color: #1abc9c; color: #16a085; }
html[data-theme="y10"] .btn.primary {
  background: #1abc9c; border: 0; border-bottom: 3px solid #16a085; color: #fff;
}
html[data-theme="y10"] .btn.primary:hover { background: #16a085; color: #fff; }
html[data-theme="y10"] .discover-btn {
  background: #1abc9c; border-radius: 4px; border-bottom: 5px solid #16a085; box-shadow: none;
  text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 22px; padding: 22px 70px;
}
html[data-theme="y10"] .discover-btn:hover { transform: none; background: #16a085; }
html[data-theme="y10"] .chip {
  border-radius: 2px; border: 2px solid #bdc3c7; background: transparent; color: #2c3e50;
  text-transform: uppercase; letter-spacing: .06em; font-size: 12px; padding: 6px 12px;
}
html[data-theme="y10"] .chip.on { background: #1abc9c; border-color: #1abc9c; color: #fff; }
html[data-theme="y10"] input, html[data-theme="y10"] select, html[data-theme="y10"] textarea {
  border: 0; border-bottom: 2px solid #bdc3c7; border-radius: 0; background: #f7f9f9;
}
html[data-theme="y10"] input:focus, html[data-theme="y10"] textarea:focus { outline: none; border-bottom-color: #1abc9c; }
html[data-theme="y10"] .form label { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: #7f8c8d; }
html[data-theme="y10"] .tag { border-radius: 2px; background: #1abc9c; color: #fff; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
html[data-theme="y10"] .status { border-radius: 2px; color: #fff; }
html[data-theme="y10"] .st-pending { background: #f39c12; color: #fff; }
html[data-theme="y10"] .st-hidden { background: #e74c3c; color: #fff; }
html[data-theme="y10"] .st-approved { background: #2ecc71; color: #fff; }
html[data-theme="y10"] .st-rejected, html[data-theme="y10"] .st-removed { background: #95a5a6; color: #fff; }
html[data-theme="y10"] .tabs { border-bottom: 0; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
html[data-theme="y10"] .tabs button { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; border-bottom-width: 3px; }
html[data-theme="y10"] .tabs button.active { border-bottom-color: #1abc9c; color: #1abc9c; }
html[data-theme="y10"] .count { background: #1abc9c; color: #fff; }
html[data-theme="y10"] .footer { background: #2c3e50; color: #95a5a6; border-top: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 11px; }
html[data-theme="y10"] .footer a { color: #1abc9c; }
html[data-theme="y10"] #toast { border-radius: 2px; background: #34495e; }
html[data-theme="y10"] #toast.ok { background: #27ae60; }
html[data-theme="y10"] #toast.error { background: #e74c3c; }

/* Discover toolbar: flat midnight bar */
html[data-theme="y10"] .dbar { background: #2c3e50; box-shadow: none; }
html[data-theme="y10"] .dbtn { background: #34495e; border-radius: 2px; text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
html[data-theme="y10"] .dbtn:hover { background: #3d566e; }
html[data-theme="y10"] .dbtn.ghost { background: transparent; color: #bdc3c7; }
html[data-theme="y10"] .dbtn.go { background: #1abc9c; border-radius: 2px; border-bottom: 3px solid #16a085; }
html[data-theme="y10"] .dbtn.vote-up.on { background: #2ecc71; }
html[data-theme="y10"] .dbtn.vote-down.on { background: #e74c3c; }
html[data-theme="y10"] .dbtn.star.on { color: #f1c40f; }
html[data-theme="y10"] .dpanel { background: #2c3e50; border-radius: 2px; }
html[data-theme="y10"] .dpanel .chip { border-color: #4b6584; color: #ecf0f1; }
html[data-theme="y10"] .dpanel .chip.on { background: #1abc9c; border-color: #1abc9c; }
html[data-theme="y10"] .dpanel input { background: #34495e; color: #fff; border-bottom-color: #4b6584; }
html[data-theme="y10"] .dhint { background: #fff; color: #7f8c8d; border-bottom: 0; }

/* Favourite stars stay gold in every theme */
html[data-theme] .star-toggle.on, html[data-theme] .star-btn { color: #c78a00; }
html[data-theme="y90"] .fb-kind span { background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; font-family: Arial, sans-serif; }
html[data-theme="y90"] .fb-kind input:checked + span { background: #000080; color: #fff; border-color: #404040 #fff #fff #404040; }
html[data-theme="y2k"] .fb-kind span { background: linear-gradient(#fff, #e4edf6); border-color: #a9c1d9; color: #1a5d9e; }
html[data-theme="y2k"] .fb-kind input:checked + span { background: linear-gradient(#ffb340 0%, #ff8a00 50%, #f07400 51%, #ff9a1f 100%); border-color: #c45f00; color: #fff; }
html[data-theme="y10"] .fb-kind span { border-radius: 2px; border: 2px solid #bdc3c7; background: transparent; text-transform: uppercase; letter-spacing: .05em; font-size: 12px; }
html[data-theme="y10"] .fb-kind input:checked + span { background: #1abc9c; border-color: #1abc9c; color: #fff; }

/* "Enjoying Elsewhere Online?" prompt */
html[data-theme="y90"] .join-prompt h4 { margin: -22px -22px 12px; text-align: left; }
html[data-theme="y90"] .join-prompt a, html[data-theme="y90"] .join-prompt button.link { color: #0000ee; }
html[data-theme="y90"] .join-prompt .join-error { color: #a00000; }
html[data-theme="y90"] .join-backdrop { background: rgba(0, 128, 128, .6); }
html[data-theme="y2k"] .join-prompt a, html[data-theme="y2k"] .join-prompt button.link { color: #8fd3ff; }
html[data-theme="y10"] .join-prompt a, html[data-theme="y10"] .join-prompt button.link { color: #1abc9c; }

/* Privacy page storage table */
html[data-theme="y90"] .storage-table th { color: #ffff66; }
html[data-theme="y90"] .storage-table td, html[data-theme="y90"] .storage-table th { border-color: #808080; }

/* Share panel */
html[data-theme="y90"] .share-text { background: #fff; color: #000; border: 2px inset #808080; border-radius: 0; }
html[data-theme="y90"] .dpanel a.chip.share-target { color: #000; }

/* About and Roadmap pages */
html[data-theme="y90"] ol.roadmap li { background: #c0c0c0; color: #000; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; }
html[data-theme="y90"] ol.roadmap button.link { color: #0000ee; }
html[data-theme="y90"] .prose-page .pull { border-left-color: #ff00ff; color: #ffff66; }
html[data-theme="y90"] .prose-page .lead { color: #ffffff; }
