/* Frogs Tattoos owner console: bone paper workspace, black sidebar, red + yellow accents. */
@font-face { font-family: "Pirata One"; src: url("../fonts/pirata.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebasneue.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dmsans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Permanent Marker"; src: url("../fonts/marker.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --ink: #0d0b0a; --ink-2: #1a1614; --bone: #f3e9d2; --paper: #faf5e8; --card: #fffdf7; --line: #ddd0b3; --line-2: #c9b993;
  --red: #e4262b; --red-d: #b81a1f; --red-t: #fde4e2; --yellow: #ffc21a; --yellow-t: #fff2c9; --green: #2f8f4a; --green-t: #dff1e4; --blue-t: #e2ebf8; --blue: #2b55b0;
  --text: #1c1714; --muted: #766a58;
  --black: "Pirata One", Georgia, serif; --label: "Bebas Neue", Impact, sans-serif; --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif; --marker: "Permanent Marker", cursive;
  --shadow: 0 1px 2px rgba(28, 23, 20, .08), 0 8px 18px -10px rgba(28, 23, 20, .3);
  --side: 250px;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
img, svg { max-width: 100%; } img { height: auto; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--black); font-weight: 400; line-height: 1.05; }
p { margin: 0 0 .8rem; } a { color: var(--red-d); } [hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
.muted { color: var(--muted); } .small { font-size: .88rem; } .hint { color: var(--muted); font-weight: 400; font-size: .85em; }
.kicker { font: 400 1.05rem/1 var(--label); letter-spacing: .24em; text-transform: uppercase; color: var(--red); margin: 0 0 .5rem; }

/* ---------- buttons + forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; font: 400 1.15rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1.3rem; border: 3px solid #000; border-radius: 5px; cursor: pointer; text-decoration: none; box-shadow: 0 3px 0 #000; transition: translate .15s, box-shadow .15s, background .15s; color: var(--text); background: #fff; }
.btn:hover { translate: 0 -2px; box-shadow: 0 5px 0 #000; } .btn:active { translate: 0 2px; box-shadow: 0 1px 0 #000; } .btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-fire { background: var(--red); color: var(--bone); } .btn-fire:hover { background: #ff3a3f; color: #fff; }
.btn-ghost { background: transparent; border-color: rgba(243, 233, 210, .35); color: var(--bone); box-shadow: none; } .btn-ghost:hover { background: rgba(243, 233, 210, .12); box-shadow: none; }
.btn-sm { padding: .65rem 1rem; font-size: 1.02rem; } .btn-xs { padding: .45rem .75rem; font-size: .95rem; } .wide { width: 100%; }
.mini { font: 700 .8rem/1 var(--sans); padding: .5rem .75rem; border-radius: 5px; border: 2px solid var(--line-2); background: #fff; color: var(--text); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; }
.mini:hover { border-color: var(--text); } .mini.hot { background: var(--yellow-t); border-color: var(--yellow); }
.mini.danger { color: var(--red-d); border-color: #efb6b2; } .mini.danger:hover { background: var(--red-t); border-color: var(--red); }
.mini.arm, .btn.arm { background: var(--red) !important; color: #fff !important; border-color: var(--red) !important; }
.actions { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
label { display: grid; gap: .3rem; font: 700 .82rem/1.2 var(--sans); margin-bottom: .85rem; }
input, select, textarea { font: 500 1rem var(--sans); color: var(--text); background: #fff; border: 2px solid var(--line-2); border-radius: 6px; padding: .65rem .8rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-t); }
input[type=color] { padding: .2rem; height: 44px; } input[type=checkbox] { width: auto; accent-color: var(--red); }
textarea { min-height: 84px; resize: vertical; }
.inline-check { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; } .form-grid .full { grid-column: 1 / -1; }
.form-error { background: var(--red-t); color: var(--red-d); border: 1px solid #efb6b2; border-radius: 6px; padding: .6rem .8rem; font-weight: 700; font-size: .92rem; }
.pw { position: relative; display: block; } .pw input { padding-right: 4.2rem; }
.pw button { position: absolute; right: .4rem; top: 50%; translate: 0 -50%; border: 0; background: var(--bone); color: var(--text); border-radius: 5px; font: 700 .75rem var(--sans); padding: .4rem .6rem; cursor: pointer; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.login-art { position: relative; overflow: hidden; background: var(--ink) radial-gradient(60% 55% at 50% 100%, rgba(228, 38, 43, .5), transparent 70%); color: var(--bone); display: grid; align-content: center; justify-items: start; gap: .5rem; padding: 3rem clamp(2rem, 6vw, 5rem) 7rem; }
.login-frog { width: min(420px, 90%); filter: drop-shadow(0 16px 20px rgba(0, 0, 0, .6)); }
.login-hand { font: 400 clamp(2rem, 4.4vw, 3rem)/1 var(--marker); color: var(--yellow); margin: 1rem 0 0; rotate: -2deg; }
.login-sub { font-size: 1.1rem; max-width: 24rem; opacity: .9; }
.login-flames { position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; fill: var(--red); }
.login-card { align-self: center; justify-self: center; width: min(400px, 100% - 2rem); padding: 2rem 0; }
.login-card h1 { font-size: 3rem; margin-bottom: .3rem; } .login-card .btn { margin-top: .4rem; }
.back { display: block; text-align: center; margin-top: 1.1rem; font-weight: 700; font-size: .92rem; color: var(--muted); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--ink); color: var(--bone); display: flex; flex-direction: column; padding: 1.1rem .9rem; gap: 1rem; border-right: 4px solid var(--red); }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: var(--bone); padding: .2rem .4rem .8rem; border-bottom: 1px solid rgba(243, 233, 210, .18); }
.brand-frog { height: 38px; width: auto; }
.brand-text { display: grid; line-height: 1.05; } .brand-text b { font: 400 1.7rem/1 var(--black); color: var(--bone); } .brand-text small { font: 400 1rem/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--yellow); margin-top: .2rem; }
.tabs { display: grid; gap: 3px; align-content: start; flex: 1; overflow-y: auto; }
.tabs button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; text-align: left; font: 400 1.2rem/1 var(--label); letter-spacing: .12em; text-transform: uppercase; color: #b3a78f; background: transparent; border: 0; border-radius: 4px; padding: .85rem .85rem; cursor: pointer; position: relative; }
.tabs button:hover { background: rgba(243, 233, 210, .08); color: var(--bone); }
.tabs button.on { background: var(--red); color: var(--bone); }
.n { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 .4rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font: 400 1rem/1 var(--label); }
.tabs .on .n { background: var(--bone); }
.side-foot { display: grid; gap: .6rem; padding-top: .9rem; border-top: 1px solid rgba(243, 233, 210, .18); font-size: .9rem; }
.main-col { min-width: 0; }
.panel { padding: 1.4rem clamp(1rem, 3vw, 2.2rem) 3rem; max-width: 1240px; }
.demo-banner { background: var(--yellow-t); border-bottom: 2px solid var(--yellow); color: #6b4d00; padding: .7rem clamp(1rem, 3vw, 2.2rem); font-weight: 600; font-size: .93rem; } .demo-banner b { color: var(--text); }

/* ---------- panels ---------- */
.p-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 1.4rem; }
.p-head h1 { font-size: clamp(2.4rem, 4vw, 3.4rem); } .p-head p { color: var(--muted); margin: .4rem 0 0; max-width: 46rem; }
.box { background: var(--card); border: 2px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); padding: 1.2rem 1.3rem; margin-bottom: 1.1rem; }
.box h2 { font-size: 1.7rem; margin: 1.2rem 0 .6rem; } .box h2:first-child { margin-top: 0; }
.empty-s { text-align: center; color: var(--muted); padding: 3rem 1rem; background: #fff; border: 2px dashed var(--line-2); border-radius: 8px; font-weight: 700; }
.warn { background: var(--yellow-t); border: 1px solid var(--yellow); border-radius: 8px; padding: .9rem 1.1rem; font-weight: 700; margin-bottom: 1rem; }
.row-line { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--line); } .row-line:last-child { border-bottom: 0; }
.pill { display: inline-block; font: 400 .95rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; padding: .3rem .55rem; border-radius: 3px; background: var(--bone); color: var(--muted); white-space: nowrap; border: 1.5px solid var(--line-2); }
.pill.new { background: var(--yellow-t); color: #7a5600; border-color: var(--yellow); } .pill.packed, .pill.contacted { background: var(--blue-t); color: var(--blue); border-color: #b5c8ea; }
.pill.shipped, .pill.booked, .pill.done, .pill.available { background: var(--green-t); color: #1f6b36; border-color: #a9d6b5; } .pill.deposit { background: #efe1fa; color: #6a2fb0; border-color: #d3b8ee; }
.pill.cancelled, .pill.closed, .pill.claimed, .pill.hidden { background: #e8e1d0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.3rem; }
.stat { text-align: left; background: var(--card); border: 2px solid var(--line-2); border-radius: 8px; padding: 1.1rem 1.2rem; cursor: pointer; font: inherit; box-shadow: var(--shadow); } div.stat { cursor: default; }
.stat b { display: block; font: 400 3rem/1 var(--black); color: var(--text); } .stat span { color: var(--muted); font-weight: 700; font-size: .85rem; }
.stat.hot { border-color: var(--red); } .stat.hot b { color: var(--red); } button.stat:hover { border-color: var(--text); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

/* ---------- orders ---------- */
.board-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-bottom: 1.4rem; }
.col { border-radius: 8px; padding: .9rem; min-height: 140px; display: grid; gap: .8rem; align-content: start; border: 2px solid var(--line-2); }
.col h2 { font: 400 1.3rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; margin: 0; }
.col-new { background: var(--yellow-t); border-color: var(--yellow); } .col-packed { background: var(--blue-t); border-color: #b5c8ea; } .col-shipped { background: var(--green-t); border-color: #a9d6b5; }
.col .n { background: #fff; } .col-empty { text-align: center; color: var(--muted); margin: 1rem 0; font-weight: 700; }
.ocard { background: #fff; border: 2px solid var(--line-2); border-radius: 6px; padding: .95rem; box-shadow: var(--shadow); display: grid; gap: .55rem; }
.oc-top { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; } .oc-code { font: 400 1.6rem/1 var(--black); color: var(--red); } .oc-name { font-weight: 700; flex: 1; min-width: 0; }
.oc-items { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; font-size: .93rem; } .oc-items b { color: var(--red-d); }
.oc-ship { font-size: .85rem; color: var(--muted); margin: 0; } .oc-note { background: var(--yellow-t); padding: .45rem .6rem; border-radius: 4px; font-size: .88rem; margin: 0; font-weight: 600; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }

/* ---------- tables ---------- */
.t-wrap { background: #fff; border: 2px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); overflow-x: auto; }
.t { width: 100%; border-collapse: collapse; } .t th { text-align: left; font: 400 1.05rem/1 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: .9rem 1rem; background: var(--bone); border-bottom: 2px solid var(--line-2); white-space: nowrap; }
.t td { padding: .75rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; } .t tr:last-child td { border-bottom: 0; } .t tbody tr:hover td { background: #fffaf0; }
.thumb { width: 74px; } .thumb .art { width: 56px; height: 56px; background: #6b5f50; border: 2px solid #000; padding: 2px; display: block; }
.art { overflow: visible; }

.flash-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.fa { display: grid; grid-template-columns: 96px 1fr; gap: 1rem; padding: 1rem; background: #fff; border: 2px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow); align-items: center; }
.fa-art { background: var(--bone); border: 2px solid #000; padding: .4rem; } .fa-art .design { width: 100%; display: block; } .fa.is-claimed .fa-art { opacity: .5; }
.fa h3 { font-size: 1.6rem; }

.inq { background: #fff; border: 2px solid var(--line-2); border-radius: 8px; padding: 1.2rem 1.3rem; margin-bottom: 1rem; box-shadow: var(--shadow); display: grid; gap: .8rem; } .inq.is-new { border-color: var(--yellow); box-shadow: 0 0 0 3px var(--yellow-t), var(--shadow); }
.inq-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; } .inq-name { font: 400 1.9rem/1 var(--black); }
.facts { display: flex; gap: .4rem; flex-wrap: wrap; } .fact { background: var(--bone); border: 1.5px solid var(--line-2); padding: .3rem .65rem; font-weight: 700; font-size: .85rem; border-radius: 4px; }
.msg { background: var(--paper); border-left: 4px solid var(--red); padding: .8rem 1rem; white-space: pre-wrap; border-radius: 0 6px 6px 0; }
.status-pick { display: flex; gap: .4rem; flex-wrap: wrap; } .status-pick button { font: 400 1.05rem/1 var(--label); letter-spacing: .1em; text-transform: uppercase; padding: .5rem .8rem; border: 2px solid var(--line-2); background: #fff; cursor: pointer; border-radius: 4px; }
.status-pick button.on { background: var(--ink); border-color: var(--ink); color: var(--bone); }
.notes-in { min-height: 70px; }

/* ---------- modal + toast ---------- */
.modal-shade { position: fixed; inset: 0; background: rgba(13, 11, 10, .6); backdrop-filter: blur(2px); z-index: 90; }
.modal { position: fixed; z-index: 100; left: 50%; top: 50%; translate: -50% -50%; width: min(660px, 100% - 1.6rem); max-height: 90vh; overflow-y: auto; background: var(--card); border: 3px solid #000; border-radius: 8px; padding: 1.6rem; box-shadow: 8px 8px 0 rgba(0, 0, 0, .5); }
.modal h2 { font-size: 2.2rem; margin-bottom: 1rem; } .modal .close { position: absolute; right: 1rem; top: 1rem; } .modal-actions { display: flex; justify-content: flex-end; margin-top: .6rem; }
.vrow { display: grid; grid-template-columns: 1fr 110px 90px auto; gap: .5rem; margin-bottom: .5rem; } .vrows { margin: .5rem 0; }
.toast { position: fixed; left: 50%; bottom: 1.4rem; translate: -50% 30px; opacity: 0; pointer-events: none; z-index: 120; background: var(--ink); color: var(--bone); font-weight: 700; padding: .8rem 1.2rem; border-radius: 6px; border: 2px solid var(--red); transition: .25s; max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; translate: -50% 0; }

@media (max-width: 960px) {
  .board-cols, .two { grid-template-columns: 1fr; } .login { grid-template-columns: 1fr; }
  .login-art { padding: 1.4rem 1.4rem 5rem; grid-auto-flow: column; justify-content: start; align-items: center; gap: 1rem; } .login-frog { width: 120px; } .login-hand { font-size: 1.6rem; margin: 0; } .login-sub { display: none; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: sticky; z-index: 50; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .6rem .8rem 0; gap: .4rem; border-right: 0; border-bottom: 4px solid var(--red); min-width: 0; }
  .brand { border: 0; padding: 0; margin-right: auto; } .brand-frog { height: 30px; }
  .side-foot { order: 2; border: 0; padding: 0; display: flex; align-items: center; gap: .5rem; } .who { display: none; }
  .tabs { order: 3; flex: 1 1 100%; display: flex; overflow-x: auto; gap: .3rem; padding: .3rem 0 .6rem; scrollbar-width: none; }
  .tabs button { flex: none; white-space: nowrap; padding: .65rem .85rem; }
  .form-grid { grid-template-columns: 1fr; } .vrow { grid-template-columns: 1fr 80px 70px auto; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.pill.awaiting_payment { background: var(--yellow-t); color: #7a5600; border-color: var(--yellow); }
.mono { font-family: ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.mailbody { white-space: pre-wrap; font: .9rem/1.5 ui-monospace, Consolas, monospace; background: var(--bone); border-radius: 6px; padding: .8rem; margin: .7rem 0 0; overflow-wrap: anywhere; }
.row-line.wait { gap: .6rem; flex-wrap: wrap; }

.mailframe { width: 100%; height: 440px; border: 2px solid var(--line-2); border-radius: 6px; margin-top: .8rem; background: #efe2c6; }
