/* ==========================================================================
   Leaf & Loaf admin console — light

   This was dark first, on the reasoning that a tool reads better dark. Wrong
   call for this one: the customer-facing site it edits is a pale Nordic page,
   and flipping between a bright menu and a black console every time you check
   your work is jarring. It is also the surface a restaurant owner opens at
   11am in a food hall with daylight coming through the roof.

   So: paper, ink and hairlines, with the Brahmexa blue kept for actions and
   accents so it still reads as part of the same family.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --paper:    #F6F7FA;
  --surface:  #FFFFFF;
  --surface-2:#F0F2F7;
  --ink:      #171B24;
  --ink-2:    #59637A;
  --ink-3:    #8A93A6;
  --hair:     #E4E8F0;
  --hair-2:   #CFD6E4;
  --blue:     #2563EB;
  --blue-lt:  #3B82F6;
  --blue-soft:#EAF1FE;
  --violet:   #7C3AED;
  --green:    #2E7D5B;
  --green-soft:#E6F4EE;
  --amber:    #A8690B;
  --amber-soft:#FDF3E2;
  --red:      #C2334A;
  --red-soft: #FCEDEF;
  --shadow-sm: 0 1px 2px rgba(23,27,36,.05);
  --shadow:    0 1px 2px rgba(23,27,36,.05), 0 10px 30px rgba(23,27,36,.07);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 5px; }
h1, h2, h3 { font-weight: 500; line-height: 1.2; }

/* The browser's own [hidden] rule is only `display: none` at user-agent
   specificity, so ANY author display declaration beats it. `.gate` sets
   `display: grid`, which meant the login screen stayed 720px tall on the page
   after signing in, with the console pushed below it. This makes `hidden`
   actually mean hidden, everywhere. */
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ gate */
.gate {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 420px at 50% -10%, #E7EEFB, transparent 70%), var(--paper);
}
.gate__card {
  width: 100%; max-width: 400px; padding: 38px 34px;
  border: 1px solid var(--hair); border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow);
  text-align: center;
}
.gate__mark {
  display: block; width: 48px; height: 48px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #9DC8A5, #3A5A40 62%, #253B2A);
  box-shadow: 0 4px 14px rgba(58,90,64,.28);
}
.gate__card h1 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; }
.gate__sub { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 26px; }
.gate__card .field { text-align: left; }
.gate__warn {
  margin-top: 22px; padding: 12px 14px; border-radius: 9px;
  border: 1px solid #EED9AE; background: var(--amber-soft);
  font-size: .74rem; color: #7A4E08; text-align: left; line-height: 1.55;
}
.gate__warn b { color: var(--amber); }

/* ----------------------------------------------------------------- forms */
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; margin-bottom: 6px; font-size: .68rem; letter-spacing: .12em;
                text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: 10px 12px;
  border: 1px solid var(--hair-2); border-radius: 8px;
  background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: .92rem;
}
.field textarea { resize: vertical; font-family: ui-monospace, "Cascadia Code", Menlo, monospace;
                  font-size: .83rem; line-height: 1.75; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px var(--blue-soft);
}

.filebtn { position: relative; display: block; }
.filebtn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.filebtn > span {
  display: flex; align-items: center; justify-content: center; height: 41px;
  border: 1px dashed var(--hair-2); border-radius: 8px; color: var(--ink-2); font-size: .86rem;
  background: var(--surface-2);
}
.filebtn:hover > span { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 18px;
  border: 1px solid var(--hair-2); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: .82rem; cursor: pointer; white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s, background .2s, color .2s;
}
.btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:disabled:hover { border-color: var(--hair-2); color: var(--ink); background: var(--surface); }
.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.btn--primary:hover { background: #1D4FD8; border-color: #1D4FD8; color: #fff; }
.btn--quiet { color: var(--ink-2); box-shadow: none; background: transparent; }
.btn--sm { height: 31px; padding: 0 13px; font-size: .76rem; }
.btn--wide { width: 100%; }
.btn--danger { border-color: #EBBFC7; color: var(--red); }
.btn--danger:hover { background: var(--red-soft); border-color: var(--red); color: var(--red); }

.note { padding: 10px 13px; border-radius: 8px; margin-bottom: 16px; font-size: .84rem; border: 1px solid; text-align: left; }
.note--bad { background: var(--red-soft); border-color: #EBBFC7; color: #8E1F32; }

.hint { font-size: .74rem; color: var(--ink-3); margin-top: 10px; line-height: 1.55; }

/* ------------------------------------------------------------------- bar */
.bar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 16px;
  padding: 11px clamp(14px, 3vw, 26px);
  border-bottom: 1px solid var(--hair);
  background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
}
.bar__mark { width: 26px; height: 26px; border-radius: 50%;
             background: radial-gradient(circle at 36% 30%, #9DC8A5, #3A5A40 62%, #253B2A); }
.bar__brand b { font-size: .96rem; font-weight: 600; }
.bar__brand span { display: block; font-size: .61rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); }
.bar__right { display: flex; align-items: center; gap: 9px; margin-left: auto; }
.who {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; color: var(--ink-2);
  padding: 5px 12px 5px 8px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--hair);
}
.who::before {
  content: ''; width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #A9CDF6, var(--blue) 70%);
}
.who b { color: var(--ink); font-weight: 500; }

.tabs { display: flex; gap: 3px; margin-left: 12px; }
.tab {
  border: 0; background: transparent; color: var(--ink-2);
  font: inherit; font-size: .84rem; padding: 7px 14px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.tab:hover { color: var(--ink); background: var(--surface-2); }
.tab[aria-selected="true"] { background: var(--blue-soft); color: var(--blue); font-weight: 500; }

.panel { padding: clamp(18px, 3vw, 30px); }

/* ------------------------------------------------------------ menu studio */
.studio { display: grid; grid-template-columns: 250px minmax(0,1fr) 300px; gap: 18px; align-items: start; }
.col { border: 1px solid var(--hair); border-radius: 14px; background: var(--surface); padding: 18px; box-shadow: var(--shadow-sm); }
.col h2 { font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.col__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.col__head h2 { margin: 0; }

.dishlist { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.dishitem {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px;
  border: 1px solid transparent; border-radius: 9px; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer; transition: all .18s;
}
.dishitem:hover { background: var(--surface-2); }
.dishitem.is-on { background: var(--blue-soft); border-color: #BBD3FB; }
.dishitem__thumb { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 7px; overflow: hidden;
                   background: var(--surface-2); border: 1px solid var(--hair); }
.dishitem__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dishitem__txt b { display: block; font-size: .84rem; font-weight: 500; }
.dishitem__txt span { display: block; font-size: .7rem; color: var(--ink-3); }

.photo {
  height: 150px; margin: 4px 0 15px; border-radius: 10px; overflow: hidden;
  border: 1px dashed var(--hair-2); display: grid; place-items: center; background: var(--surface-2);
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .ph { font-size: .8rem; color: var(--ink-3); }

/* -------------------------------------------------------------- computed */
.macros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hair);
          border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.macros > div { background: var(--surface); padding: 12px 13px; }
.macros dt { font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.macros dd { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; line-height: 1.05; display: inline; }
.macros span { font-size: .66rem; color: var(--ink-3); margin-left: 3px; }

.macrobar { display: flex; height: 7px; border-radius: 999px; overflow: hidden; margin: 13px 0 7px; background: var(--surface-2); }
.mb { transition: width .35s ease; }
.mb--p { background: var(--blue); }
.mb--c { background: #D9932A; }
.mb--f { background: var(--violet); }
.legend { font-size: .68rem; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.k { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-left: 8px; }
.k--p { background: var(--blue); } .k--c { background: #D9932A; } .k--f { background: var(--violet); }

.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.tag { font-size: .66rem; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--ink-2); background: var(--surface); }
.tag--warn { border-color: #EED9AE; color: var(--amber); background: var(--amber-soft); }

.warnbox { margin-top: 12px; padding: 10px 12px; border-radius: 8px; font-size: .74rem; line-height: 1.55;
           border: 1px solid #EED9AE; background: var(--amber-soft); color: #7A4E08; }
.warnbox b { color: var(--amber); }

.kv { display: flex; flex-direction: column; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 10px; overflow: hidden; }
.kv > div { background: var(--surface); padding: 10px 13px; display: flex; justify-content: space-between; align-items: baseline; }
.kv dt { font-size: .74rem; color: var(--ink-3); }
.kv dd { font-size: .92rem; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ pitch panels */
.pitch { max-width: 1180px; margin: 0 auto; }
.pitch__head { max-width: 70ch; margin-bottom: 24px; }
.pitch__head h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); font-weight: 400; margin: 12px 0 10px; }
.pitch__head p { color: var(--ink-2); font-weight: 300; }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .63rem; letter-spacing: .13em;
        text-transform: uppercase; padding: 4px 12px; border-radius: 999px; border: 1px solid; }
.chip--lock { border-color: #EED9AE; color: var(--amber); background: var(--amber-soft); }
.chip--lock::before { content: '🔒'; font-size: .8em; }
.chip--live { border-color: #BEE0D0; color: var(--green); background: var(--green-soft); }
.chip--live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ============================================================ workflow canvas */
.wfwrap {
  display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 16px;
  align-items: stretch; margin-bottom: 22px;
}
.wfstage {
  position: relative; border: 1px solid var(--hair); border-radius: 14px;
  background:
    radial-gradient(circle at 1px 1px, #DDE3EE 1px, transparent 0) 0 0 / 22px 22px,
    var(--surface);
  box-shadow: var(--shadow-sm); padding: 12px; overflow: hidden;
}
.wfstage__bar {
  display: flex; align-items: center; gap: 10px; padding: 2px 4px 12px;
  border-bottom: 1px solid var(--hair); margin-bottom: 8px;
}
.wfstage__bar b { font-size: .82rem; font-weight: 500; }
.wfstage__bar .chip { margin-left: auto; }

.wf { display: block; width: 100%; height: auto; }

/* wires */
.wf-edge { fill: none; stroke: #C6CEDE; stroke-width: 2; stroke-linecap: round; }
.wf-edge--live { stroke: var(--blue); stroke-width: 2.5; opacity: 0; transition: opacity .3s ease; }
.wf-edge--live.is-on { opacity: .95; }

.wf-pkt { fill: var(--blue); opacity: 0; }
.wf-pkt.is-on { opacity: 1; filter: drop-shadow(0 0 6px rgba(37,99,235,.6)); }

/* nodes */
.wf-node { cursor: pointer; }
.wf-node__box { fill: var(--surface); stroke: var(--hair-2); stroke-width: 1.5; }
.wf-node__glow { fill: none; stroke: var(--blue); stroke-width: 2.5; opacity: 0; transition: opacity .25s ease; }
.wf-node:hover .wf-node__box { stroke: var(--blue); }

.wf-node__icon  { font-size: 19px; dominant-baseline: middle; }
.wf-node__label { font-size: 13.5px; font-weight: 600; fill: var(--ink); }
.wf-node__sub   { font-size: 10.5px; fill: var(--ink-3); letter-spacing: .02em; }

.wf-node--trigger .wf-node__box { fill: #F2F7FF; stroke: #BBD3FB; }
.wf-node--sub     .wf-node__box { stroke-dasharray: 5 4; }
.wf-node--end     .wf-node__box { fill: var(--green-soft); stroke: #BEE0D0; }

/* running / done states */
.wf-node__spin {
  fill: none; stroke: var(--blue); stroke-width: 2.5;
  stroke-dasharray: 12 32; opacity: 0; transform-origin: center;
}
.wf-node.is-running .wf-node__glow { opacity: 1; }
.wf-node.is-running .wf-node__spin { opacity: 1; animation: wf-spin .9s linear infinite; }
.wf-node.is-running .wf-node__box  { fill: #FBFDFF; }

.wf-node__tick { fill: none; stroke: var(--green); stroke-width: 2.4;
                 stroke-linecap: round; stroke-linejoin: round;
                 opacity: 0; stroke-dasharray: 16; stroke-dashoffset: 16; }
.wf-node.is-done .wf-node__tick { opacity: 1; animation: wf-tick .3s ease forwards; }
.wf-node.is-done .wf-node__box  { stroke: #BEE0D0; fill: #FBFEFC; }

@keyframes wf-spin { to { transform: rotate(360deg); } }
@keyframes wf-tick { to { stroke-dashoffset: 0; } }

/* the run log */
.wf-log {
  border: 1px solid var(--hair); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-sm); padding: 14px; display: flex; flex-direction: column; min-height: 0;
}
.wf-log h3 { font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.wf-log__list {
  list-style: none; flex: 1; overflow-y: auto; max-height: 330px;
  font-family: ui-monospace, "Cascadia Code", Menlo, monospace; font-size: .73rem; line-height: 1.75;
  color: var(--ink-2);
}
.wf-log__line { padding: 1px 0; animation: wf-in .22s ease; }
.wf-log__line--head { color: var(--blue); font-weight: 600; }
.wf-log__line--fan  { color: var(--violet); }
.wf-log__line--end  { color: var(--green); font-weight: 600; }
@keyframes wf-in { from { opacity: 0; transform: translateY(3px); } }

.wf-log__foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); }

/* ------------------------------------------------- reference order systems */
.refsys {
  margin-bottom: 22px; padding: 22px 24px;
  border: 1px solid var(--hair); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.refsys__h { font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.refsys__lede { font-size: .88rem; color: var(--ink-2); font-weight: 300; max-width: 68ch; margin-bottom: 16px; }

.refsys__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 12px; }
.refsys__card {
  display: block; padding: 16px 18px;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--surface-2);
  transition: border-color .2s, transform .2s, background .2s;
}
.refsys__card:hover { border-color: var(--blue); background: var(--blue-soft); transform: translateY(-2px); }
.refsys__card b { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 600; }
.refsys__card b span { color: var(--ink-3); font-weight: 400; }
.refsys__where { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 3px 0 8px; }
.refsys__card p { font-size: .84rem; color: var(--ink-2); font-weight: 300; }
.refsys__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.refsys__tags i {
  font-style: normal; font-size: .64rem; letter-spacing: .08em;
  padding: 2px 9px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--ink-3);
}
.refsys__note {
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--hair);
  font-size: .8rem; color: var(--ink-2); font-weight: 300; line-height: 1.6;
}
.refsys__note code { font-size: .92em; background: var(--surface-2); padding: 1px 6px; border-radius: 4px; }

/* ------------------------------------------------------------------ teaser */
.teaser {
  display: flex; gap: 26px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 22px 24px; border-radius: 14px;
  border: 1px solid var(--hair-2);
  background: linear-gradient(120deg, #F3F7FF, var(--surface) 60%);
  box-shadow: var(--shadow-sm);
}
.teaser h3 { font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 64ch; }
.ticks li { position: relative; padding-left: 22px; font-size: .88rem; color: var(--ink-2); font-weight: 300; }
.ticks li b { color: var(--ink); font-weight: 500; }
.ticks li::before { content: '✓'; position: absolute; left: 0; color: var(--green); font-size: .82rem; }

/* ------------------------------------------------------------------- REACH */
.reach { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 20px; align-items: start; margin-bottom: 22px; }
.reach__controls { border: 1px solid var(--hair); border-radius: 13px; background: var(--surface); padding: 18px; box-shadow: var(--shadow-sm); }
.channels { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 16px; }
.ch { font-size: .68rem; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--hair-2); color: var(--ink-2); background: var(--surface-2); }

.post { max-width: 420px; border: 1px solid var(--hair-2); border-radius: 13px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm); }
.post__top { display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-bottom: 1px solid var(--hair); }
.post__av { width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #9DC8A5, #3A5A40 62%, #253B2A); }
.post__top b { font-size: .86rem; }
.post__top span { font-size: .72rem; color: var(--ink-3); }
.post__img { height: 250px; display: grid; place-items: center; color: var(--ink-3); font-size: .76rem;
  text-align: center; padding: 0 24px; overflow: hidden;
  background: repeating-linear-gradient(45deg, #EEF1F7 0 12px, #F5F7FB 12px 24px); }
.post__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post__body { padding: 14px; font-family: inherit; font-size: .86rem; white-space: pre-wrap; color: var(--ink); line-height: 1.6; }
.post__meta { padding: 0 14px 14px; font-size: .7rem; color: var(--ink-3); }

/* --------------------------------------------------------------------- SEO */
.seo { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 20px; align-items: start; margin-bottom: 22px; }
.seo__score { border: 1px solid var(--hair); border-radius: 13px; background: var(--surface); padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.seo__num { display: block; font-family: 'Cormorant Garamond', serif; font-size: 2.6rem; line-height: 1; color: var(--green); }
.seo__lab { display: block; font-size: .66rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-top: 6px; }

.findings { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.finding { display: flex; gap: 12px; padding: 13px 15px; border: 1px solid var(--hair); border-radius: 11px; background: var(--surface); box-shadow: var(--shadow-sm); }
.finding__dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; margin-top: 7px; }
.finding--ok  .finding__dot { background: var(--green); }
.finding--gap .finding__dot { background: #D9932A; }
.finding--bad .finding__dot { background: var(--red); }
.finding b { display: block; font-size: .88rem; font-weight: 500; }
.finding span span { display: block; font-size: .8rem; color: var(--ink-2); font-weight: 300; margin-top: 2px; }

/* -------------------------------------------------------------- lock modal */
.lock {
  margin: auto; max-width: 470px; width: 92vw; padding: 32px;
  border: 1px solid var(--hair-2); border-radius: 17px; color: var(--ink);
  background: linear-gradient(150deg, #F4F8FF, var(--surface) 55%);
  box-shadow: 0 30px 80px rgba(23,27,36,.22);
}
.lock::backdrop { background: rgba(23,27,36,.34); backdrop-filter: blur(3px); }
.lock h2 { font-size: 1.4rem; margin: 14px 0 9px; }
.lock > p { color: var(--ink-2); font-size: .9rem; font-weight: 300; margin-bottom: 16px; }
.lock__x { position: absolute; top: 14px; right: 16px; background: none; border: 0; color: var(--ink-3);
           font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lock__x:hover { color: var(--ink); }
.lock__cta { display: flex; gap: 9px; flex-wrap: wrap; margin: 20px 0 4px; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 150%);
  z-index: 300; max-width: min(500px, calc(100vw - 32px));
  padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: .85rem;
  box-shadow: 0 14px 40px rgba(23,27,36,.3); transition: transform .45s cubic-bezier(.16,1,.3,1);
}
.toast.is-up { transform: translate(-50%, 0); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .wfwrap { grid-template-columns: 1fr; }
  .wf-log__list { max-height: 190px; }
}
@media (max-width: 1080px) {
  .studio { grid-template-columns: 220px minmax(0,1fr); }
  .col--out { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .bar { flex-wrap: wrap; }
  .tabs { order: 3; width: 100%; margin: 6px 0 0; overflow-x: auto; }
  .studio, .reach, .seo { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .001ms !important; animation: none !important; }
}
