/* Omadli Proposals — tokens lifted from omadligroup.com (app/globals.css).
   unslop-ignore: caramel/cocoa/ink/stone + Inter are the real Omadli brand, a stated decision. */
:root {
  --caramel: #BA8055;
  --cocoa:   #9A6540;
  --ink:     #1A1614;
  --body:    #6B5F58;
  --muted:   #8F8178;
  --white:   #FFFFFF;
  --cream:   #F5F3F1;
  --sand:    #F0E4D8;
  --stone:   #E8E3DF;
  --brick:   #B23A2E;
  --green:   #3F7D5A;
  --font: "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;
  /* radius scale: control / card / sheet */
  --r1: 6px; --r2: 10px; --r3: 16px;
  --shadow: 0 1px 2px rgba(26,22,20,.04), 0 8px 24px rgba(26,22,20,.05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 14.5px; line-height: 1.5;
  color: var(--body); background: var(--white);
  font-feature-settings: "tnum" 1, "cv11" 1;
}
h1, h2, h3 { color: var(--ink); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 650; }
h2 { font-size: 15px; font-weight: 650; }
p { margin: 0; }
a { color: var(--cocoa); text-decoration: none; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--cocoa); outline-offset: 2px; border-radius: var(--r1); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- shell ---- */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--stone); }
.top__in { max-width: 1080px; margin: 0 auto; padding: 0 24px; height: 58px; display: flex; align-items: center; gap: 28px; }
.top__logo img { height: 28px; display: block; }
.top__app { font-size: 13px; font-weight: 600; color: var(--ink); padding-left: 28px; border-left: 1px solid var(--stone); line-height: 1; }
.top__sp { flex: 1; }
.top__user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.page { max-width: 1080px; margin: 0 auto; padding: 32px 24px 80px; }
.page--narrow { max-width: 720px; }

/* ---- controls ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
  font: 600 13.5px/1 var(--font); color: var(--ink); background: var(--white);
  border: 1px solid var(--stone); border-radius: var(--r2); cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--cream); border-color: #D8D0CA; color: var(--ink); }
.btn--primary { background: var(--cocoa); border-color: var(--cocoa); color: #fff; }
.btn--primary:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r1); }
.btn--ghost { border-color: transparent; background: transparent; color: var(--body); }
.btn--danger { color: var(--brick); }
.btn--danger:hover { background: #FBEDEB; border-color: #F0C9C4; color: var(--brick); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--cocoa); cursor: pointer; }
.link-btn:hover { color: var(--ink); }

.field { display: grid; gap: 6px; align-content: start; }
.field > label, .label { font-size: 13px; font-weight: 600; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); }
.err { font-size: 12.5px; color: var(--brick); font-weight: 500; }
.input {
  width: 100%; height: 40px; padding: 0 12px; font: 500 14px var(--font); color: var(--ink);
  background: var(--white); border: 1px solid #D8D0CA; border-radius: var(--r2);
}
.input::placeholder { color: #B5A99F; font-weight: 400; }
.input:hover { border-color: #C4BAB2; }
.input:focus { outline: none; border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(186,128,85,.2); }
.input.is-bad { border-color: var(--brick); }

/* subdomain input: [ slug ].omadligai.com as one control */
.addr { display: flex; align-items: stretch; border: 1px solid #D8D0CA; border-radius: var(--r2); background: var(--white); overflow: hidden; }
.addr:focus-within { border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(186,128,85,.2); }
.addr.is-bad { border-color: var(--brick); }
.addr input { flex: 1; min-width: 0; border: 0; height: 40px; padding: 0 4px 0 12px; font: 600 14px var(--font); color: var(--ink); text-align: left; background: transparent; }
.addr input:focus { outline: none; }
.addr span { display: flex; align-items: center; padding: 0 12px 0 0; background: var(--white); font: 500 14px var(--font); color: var(--muted); white-space: nowrap; }
.addr-status { min-height: 18px; font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.addr-status.ok { color: var(--green); }
.addr-status.bad { color: var(--brick); font-weight: 500; }

.drop {
  display: grid; place-items: center; text-align: center; gap: 4px; padding: 28px 20px;
  border: 1.5px dashed #CDBFB4; border-radius: var(--r3); background: var(--cream); cursor: pointer; transition: border-color .12s, background .12s;
}
.drop:hover, .drop.is-over { border-color: var(--cocoa); background: var(--sand); }
.drop.is-bad { border-color: var(--brick); }
.drop svg { width: 22px; height: 22px; color: var(--cocoa); }
.drop strong { font-size: 14px; }
.drop__name { font-weight: 600; color: var(--ink); word-break: break-all; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--cocoa); width: 16px; height: 16px; }
.check small { display: block; color: var(--muted); font-size: 12.5px; }

/* ---- status ---- */
.tag { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; font-size: 12px; font-weight: 600; border-radius: var(--r1); background: var(--cream); color: var(--body); white-space: nowrap; }
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.tag--live { background: #EAF4EE; color: #2F6347; }
.tag--live::before { background: var(--green); }

/* ---- messages ---- */
.msgs { display: grid; gap: 8px; margin-bottom: 20px; }
.msg { padding: 11px 14px; border-radius: var(--r2); background: #EAF4EE; color: #2F6347; font-weight: 500; border: 1px solid #CFE5D7; }
.msg--error { background: #FBEDEB; color: var(--brick); border-color: #F0C9C4; }

/* ---- dashboard ---- */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.head p { margin-top: 4px; }
.stats { display: flex; gap: 28px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.stats b { color: var(--ink); font-size: 13px; font-weight: 650; margin-right: 4px; }
.table { border: 1px solid var(--stone); border-radius: var(--r3); overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(220px, 1.7fr) 92px 70px 112px 96px; gap: 16px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--stone); }
.row:first-child { border-top: 0; }
.row--head { padding: 10px 18px; background: var(--cream); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.row:not(.row--head):hover { background: #FBFAF9; }
.cell-title { min-width: 0; }
.cell-title a { display: block; font-weight: 650; color: var(--ink); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cell-title a:hover { color: var(--cocoa); }
.cell-title small { color: var(--muted); font-size: 12.5px; }
.linkcell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.linkcell a.url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px var(--mono); color: var(--body); }
.linkcell a.url:hover { color: var(--cocoa); }
.icon-btn { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: var(--r1); background: transparent; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--cream); color: var(--ink); border-color: var(--stone); }
.icon-btn.is-done { color: var(--green); }
.num { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.muted { color: var(--muted); font-size: 13px; }
.actions { display: flex; justify-content: flex-end; }
.empty { padding: 48px 24px; text-align: center; border: 1px dashed #CDBFB4; border-radius: var(--r3); background: var(--cream); }
.empty h2 { font-size: 17px; margin-bottom: 6px; }
.empty ol { text-align: left; max-width: 380px; margin: 18px auto 22px; padding-left: 20px; color: var(--ink); display: grid; gap: 4px; }

/* ---- form pages ---- */
.formgrid { display: grid; gap: 22px; }
.section { border: 1px solid var(--stone); border-radius: var(--r3); padding: 22px; display: grid; gap: 18px; }
.section > h2 { margin-bottom: -4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.live-box { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--stone); border-radius: var(--r2); background: var(--cream); }
.live-box a { font: 600 13px var(--mono); color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-box .sp { flex: 1; }
.bar { display: flex; gap: 10px; align-items: center; }
.bar .sp { flex: 1; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; margin-bottom: 14px; color: var(--muted); }
dialog { border: 1px solid var(--stone); border-radius: var(--r3); padding: 24px; max-width: 420px; box-shadow: 0 24px 60px rgba(26,22,20,.2); color: var(--body); }
dialog::backdrop { background: rgba(26,22,20,.4); }
dialog h2 { font-size: 17px; margin-bottom: 8px; }
dialog .bar { margin-top: 20px; justify-content: flex-end; }

/* ---- centered cards (login, gate, 404) ---- */
.center { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--cream); }
.card { width: 100%; max-width: 380px; background: var(--white); border: 1px solid var(--stone); border-radius: var(--r3); padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; }
.card img { height: 30px; justify-self: start; }
.card h1 { font-size: 21px; }

@media (max-width: 860px) {
  .row--head { display: none; }
  .row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .row .linkcell { grid-column: 1 / -1; order: 3; }
  .row .col-views, .row .col-upd { display: none; }
  .two { grid-template-columns: 1fr; }
  .top__app { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
