/* Har Çeviri — the HAR look: inner pages after the e-posta admin panel (panel.css), sign-in pages after the
   webmail login (skins/har). Spec: docs/superpowers/specs/2026-10-24-har-ceviri-visual-design.md. */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-display: swap; src: url(fonts/plex-sans-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-display: swap; src: url(fonts/plex-sans-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-display: swap; src: url(fonts/plex-sans-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url(fonts/plex-sans-latin-700.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans"; font-weight: 700; font-display: swap; src: url(fonts/plex-sans-latin-ext-700.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --bg: #f3f2f1; --surface: #fff; --surface-2: #faf9f8; --hover: #f3f2f1;
  --border: #e1dfdd; --border-2: #c8c6c4;
  --text: #201f1e; --text-2: #484644; --text-3: #605e5c;
  --red: #c4161c; --red-2: #a10f14; --red-soft: #fbe9ea;
  --green: #107c41; --green-soft: #e3f3e8; --amber: #8a5300; --amber-soft: #fff4ce;
  --blue: #0f6cbd; --blue-soft: #e6f0fa;
  --shadow: 0 1.6px 3.6px rgba(0,0,0,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "IBM Plex Sans", system-ui, -apple-system, sans-serif; }
h1, h2 { margin: 0; font-weight: 600; color: var(--text); }
h1 { font-size: 24px; }
p { margin: 0 0 12px; color: var(--text-2); }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
svg.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* shell */
.topbar { height: 50px; background: var(--red); color: #fff; display: flex; align-items: center; gap: 16px; padding: 0 18px; position: sticky; top: 0; z-index: 10; }
.topbar .brand { display: flex; align-items: center; gap: 16px; color: #fff; }
.topbar .brand:hover { text-decoration: none; }
.topbar .brand img { height: 15px; display: block; }
.topbar .sep { width: 1px; height: 22px; background: rgba(255,255,255,.35); }
.topbar .title { font-weight: 500; white-space: nowrap; }
.topbar a:focus-visible, .topbar button:focus-visible { outline-color: #fff; }
.nav { display: flex; gap: 4px; flex: 1; align-items: center; }
.nav .right { margin-left: auto; display: flex; gap: 4px; align-items: center; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 4px; color: #fff; font: 500 14px "IBM Plex Sans", system-ui, sans-serif; white-space: nowrap; }
.nav a:hover, .nav button:hover { background: rgba(0,0,0,.18); text-decoration: none; }
.nav a[aria-current=page] { background: rgba(0,0,0,.18); font-weight: 600; }
.nav form { margin: 0; }
.toplink { margin-left: auto; display: inline-flex; align-items: center; height: 32px; padding: 0 10px; border-radius: 4px; color: #fff; font-weight: 500; }
.toplink:hover { background: rgba(0,0,0,.18); text-decoration: none; }
.page-head h1, .page-title { margin: 0; }
.page-title { margin-bottom: 16px; }
form.inline { display: inline; margin: 0; }
.nav button { margin: 0; background: transparent; border: 1px solid rgba(255,255,255,.6); cursor: pointer; }
.navtoggle { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.navtoggle:focus-visible ~ .topbar .navbtn { outline: 2px solid #fff; outline-offset: 2px; }
.navbtn { display: none; margin: 0; color: #fff; cursor: pointer; }
.navbtn svg { width: 22px; height: 22px; }
main { padding: 22px 30px 56px; max-width: 1040px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
footer { max-width: 1040px; margin: 0 auto; padding: 0 30px 28px; font-size: 12.5px; color: var(--text-3); }
footer .inner { display: flex; gap: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
footer a { color: var(--text-3); }

/* boxes, buttons, forms */
.box { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); padding: 18px 20px 20px; }
.box + .box { margin-top: 14px; }
label { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; }
input { width: 100%; margin-top: 5px; padding: 0 9px; height: 34px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 4px; color: var(--text); font: 14px "IBM Plex Sans", system-ui, sans-serif; }
input:focus { outline: 2px solid var(--red); outline-offset: -1px; border-color: transparent; }
input[type=file] { height: auto; padding: 6px; }
input[type=file]::file-selector-button { height: 30px; margin-right: 10px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 4px; background: var(--surface); color: var(--text); font: 500 14px "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; margin-top: 18px; padding: 0 16px; border-radius: 4px; border: 1px solid var(--red); background: var(--red); color: #fff; font: 500 14px "IBM Plex Sans", system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
button:hover, .btn:hover { background: var(--red-2); border-color: var(--red-2); text-decoration: none; }
.btn { margin-top: 0; }
.btn.secondary { background: var(--surface); border-color: var(--border-2); color: var(--text); }
.btn.secondary:hover { background: var(--hover); }
.btn.danger { background: var(--surface); color: var(--red); border-color: #e8b3b5; }
.btn.danger:hover { background: var(--red-soft); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.error, .notice, .notice-limit { display: block; padding: 10px 14px; margin: 0 0 14px; border-radius: 4px; border: 1px solid; font-size: 13.5px; }
.error { color: #8e1116; background: var(--red-soft); border-color: #f1c1c3; }
.notice { color: var(--green); background: var(--green-soft); border-color: #b9e0c7; }
.muted { color: var(--text-3); }
progress[hidden] { display: none; }
progress { appearance: none; -webkit-appearance: none; display: block; width: 100%; height: 8px; margin-top: 16px; border: 0; border-radius: 4px; background: var(--border); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--border); border-radius: 4px; }
progress::-webkit-progress-value { background: var(--red); border-radius: 4px; }
progress::-moz-progress-bar { background: var(--red); border-radius: 4px; }

/* table + pills */
.table-box { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--border-2); white-space: nowrap; }
td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--surface-2); }
td.name { overflow-wrap: anywhere; min-width: 160px; }
td.when { white-space: nowrap; color: var(--text-2); }
.reason { color: var(--text-3); margin-left: 6px; font-size: 13px; }
td.dl a { margin-right: 10px; font-weight: 500; }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 3px; white-space: nowrap; }
.pill-queued, .pill-disk { background: var(--amber-soft); color: var(--amber); }
.pill-running { background: var(--blue-soft); color: var(--blue); }
.pill-done { background: var(--green-soft); color: var(--green); }
.pill-failed { background: var(--red-soft); color: var(--red); }
.pill-cancelled { background: #edebe9; color: var(--text-2); }
.facts { margin: 14px 0 0; display: grid; grid-template-columns: max-content 1fr; font-size: 13.5px; }
.facts dt { color: var(--text-3); padding: 7px 24px 7px 0; border-bottom: 1px solid var(--border); }
.facts dd { margin: 0; padding: 7px 0; border-bottom: 1px solid var(--border); }
.job-title { overflow-wrap: anywhere; margin-bottom: 8px; }
.back { display: inline-block; margin-bottom: 12px; }
.box .facts + .error { margin: 14px 0 0; }
.box > .facts:first-child { margin-top: 0; }
.box > .facts:first-child > :nth-last-child(-n+2) { border-bottom: 0; }
.box > p:last-child { margin-bottom: 0; }
.actions .btn { margin-top: 0; }

@media (max-width: 900px) {
  .navbtn { display: inline-flex; }
  .topbar { gap: 12px; padding: 0 12px; }
  .topbar .title, .topbar .sep { display: none; }
  .nav { display: none; position: absolute; top: 50px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--surface); box-shadow: 0 6px 16px rgba(0,0,0,.14); padding: 4px 0; }
  .nav .right { margin: 0; flex-direction: column; align-items: stretch; gap: 0; }
  .navtoggle:checked ~ .topbar .nav { display: flex; }
  .nav a, .nav button { height: 44px; border-radius: 0; padding: 0 16px; color: var(--text); border: 0; border-left: 3px solid transparent; width: 100%; justify-content: flex-start; }
  .nav a:hover { background: var(--hover); }
  .nav a[aria-current=page] { background: var(--hover); border-left-color: var(--red); }
  .nav button { color: var(--red); }
  .nav button:hover { background: var(--red-soft); }
  .nav a:focus-visible, .nav button:focus-visible { outline-color: var(--text); }
  main { padding: 18px 14px 40px; }
  footer { padding: 0 14px 24px; }
  .facts { grid-template-columns: 1fr; }
  .facts dt { border-bottom: 0; padding-bottom: 0; }
}
@media (min-width: 901px) { .navtoggle { display: none; } }

/* auth pages (webmail login) */
body.auth { background: #fff; }
.auth-layout { display: flex; min-height: 100vh; }
.auth-content { max-width: none; margin: 0; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: flex-start; padding: 14vh 21px 28px; }
.auth-inner { width: 100%; max-width: 360px; }
.auth-logo { display: block; height: 28px; margin: 0 0 31.5px; }
.auth-rule { width: 32px; height: 3px; margin: 0 0 24.5px; border-radius: 2px; background: var(--red); }
.auth h1 { font-size: 20px; margin: 0 0 14px; }
.auth p { color: var(--text-2); }
.auth p.error { color: #8e1116; }
.field { margin: 0 0 15.75px; }
.auth label { margin: 0; padding-bottom: 5.25px; font-size: 12.25px; font-weight: 600; }
.auth input { height: 48px; margin: 0; padding: 0 12.25px; border: 1px solid #e1dedc; border-radius: 6px; font-size: 14px; }
.auth input:hover { border-color: #8a8886; }
.auth input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(196,22,28,.15); }
.auth input:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.auth button { width: 100%; height: 48px; margin-top: 24.5px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.auth .links { margin-top: 18px; font-size: 14px; }
.auth .legal { margin-top: 28px; font-size: 12.5px; }
.auth .legal a { color: var(--text-3); }
@media (max-width: 899px) { .auth input { font-size: 16px; } }
@media (min-width: 900px) {
  .auth-layout::before { content: ''; flex: 0 0 44%; max-width: 640px;
    background:
      radial-gradient(circle at 78% 22%, rgba(196,22,28,.6) 0, rgba(196,22,28,0) 48%),
      radial-gradient(circle at 0% 100%, rgba(196,22,28,.22) 0, rgba(196,22,28,0) 45%),
      radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.5px) 0 0 / 22px 22px,
      linear-gradient(160deg, #262a31 0%, #15171b 100%); }
  .auth-content { justify-content: center; padding-top: 28px; }
}
