:root {
  color-scheme: light;
  --ink: #18251f;
  --paper: #f8f6ec;
  --lime: #c0ec52;
  --forest: #183b30;
  --line: #c5cabb;
  --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --display: "Baskervville", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 22px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 var(--body); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #638400; outline-offset: 4px; }
header :focus-visible, footer :focus-visible { outline-color: var(--lime); }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 500; line-height: 1.03; letter-spacing: -.055em; }
h1 { font-size: clamp(3.5rem, 6.8vw, 7.3rem); }
h2 { font-size: clamp(2.5rem, 4.2vw, 4.5rem); }
h3 { font-size: 1.35rem; line-height: 1.25; }
em { font-weight: 400; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.wrap { width: min(100% - clamp(2.5rem, 10vw, 10rem), 84rem); margin-inline: auto; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 5; background: white; padding: 8px; }
.skip:focus { top: 8px; }
header, footer { background: #13231d; color: var(--paper); }
.mast { min-height: 80px; display: flex; align-items: center; gap: 2rem; }
.brand { display: flex; margin-right: auto; }
.wordmark { display: block; width: 12.4rem; height: auto; }
.mast nav, .footer-links { display: flex; gap: clamp(1.15rem, 2.6vw, 3rem); }
.mast nav a, .site-link, .footer-links a { text-decoration: none; font-weight: 550; }
.mast nav a:hover, .mast nav [aria-current], .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.button { min-height: 47px; display: inline-flex; justify-content: center; align-items: center; padding: .66rem 1.55rem; border-radius: 4px; font-weight: 680; text-decoration: none; border: 1px solid transparent; line-height: 1.3; }
.button:hover { box-shadow: inset 0 0 0 2px currentColor; }
.lime { background: var(--lime); color: #142216; }
.dark { background: var(--forest); color: white; }
.paper { background: var(--paper); color: var(--ink); }
.text-link { font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; background: transparent; border: 0; padding: .3rem 0; }
.eyebrow, .quick-inner span, .date-grid b { font-size: .8rem; font-weight: 720; letter-spacing: .115em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: .65rem; }
.dash { display: inline-block; height: 2px; width: 2rem; background: currentColor; }
.hero { padding-block: clamp(2.7rem, 4.7vw, 5rem); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 5%; }
.hero-copy { align-self: center; padding-block: 1rem; }
.hero h1 { margin: 1.35rem 0 1.2rem; font-size: clamp(4.7rem, 7.85vw, 8.25rem); line-height: .93; }
.hero h1 em, .story h2 em, .page-section h1 em { color: #385c40; }
.lead { max-width: 49ch; font-size: clamp(1.075rem, 1.35vw, 1.27rem); line-height: 1.55; }
.hero .lead { max-width: 38ch; }
.actions { display: flex; align-items: center; gap: 1.65rem; flex-wrap: wrap; margin-top: 1.65rem; }
.art { position: relative; isolation: isolate; overflow: hidden; background: #14372d; border: 1px solid #163d30; min-height: 24rem; align-self: stretch; }
.art-inner { position: absolute; inset: 3% 7%; }
.art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: screen; filter: saturate(.85) brightness(1.12); }
.contours { position: absolute; width: 150%; height: 160%; opacity: .52; }
.contours.top { left: -107%; top: -91%; transform: rotate(-25deg); border-radius: 45%; background: repeating-radial-gradient(ellipse at 50% 49%, transparent 0 12px, #6d8e5c 12.5px 13.3px, transparent 14px 17px); }
.contours.bottom { width: 153%; height: 170%; right: -113%; bottom: -116%; transform: rotate(-34deg); border-radius: 36%; background: repeating-radial-gradient(ellipse at 48% 44%, transparent 0 14px, #799c65 14.5px 15.4px, transparent 16px 18px); }
.register { position: absolute; height: .75rem; width: .75rem; opacity: .72; border-color: #c4d2a6; border-style: solid; }
.r1 { left: 1.2rem; top: 1.2rem; border-width: 1px 0 0 1px; }
.r2 { right: 1.2rem; top: 1.2rem; border-width: 1px 1px 0 0; }
.r3 { left: 1.2rem; bottom: 1.2rem; border-width: 0 0 1px 1px; }
.r4 { right: 1.2rem; bottom: 1.2rem; border-width: 0 1px 1px 0; }
.quickbar { background: #eaf0d8; border-block: 1px solid #c6d1b5; }
.quick-inner { display: grid; grid-template-columns: 1.05fr 1.05fr 1fr; padding-block: 1.4rem; }
.quick-inner div { display: grid; align-content: start; gap: .2rem; }
.quick-inner div + div { border-left: 1px solid #b9c5a9; padding-left: 12%; }
.quick-inner span { color: #43583d; }
.quick-inner a, .quick-inner strong { font-size: clamp(1rem, 1.55vw, 1.38rem); font-weight: 560; text-decoration: none; }
.quick-inner a:hover { text-decoration: underline; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 5%; padding-block: clamp(3.3rem, 6vw, 6.6rem); }
.story h2, .band-inner h2 { margin-top: .9rem; }
.story-copy { align-self: center; max-width: 50ch; font-size: clamp(1.05rem, 1.4vw, 1.2rem); }
.story-copy p + p { margin-top: .9rem; }
.event-band { background: #dbe4ca; }
.band-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 3.2rem; }
.footer-brand { display: grid; gap: .9rem; }
.footer-brand .wordmark { width: 10.8rem; }
.footer-brand span { color: #c6cfbf; font-size: .88rem; }
.footer-links { flex-wrap: wrap; font-size: .92rem; }
.page-section { padding-block: clamp(3rem, 7vw, 7rem); min-height: 68vh; }
.page-section h1, .login-wrap h1 { margin-block: 1rem; }
.visit-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 1.8rem; margin-top: 3.5rem; }
.visit-grid section { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.visit-grid h2, .agenda h2, .admin-content h2 { font-size: 2rem; margin-bottom: 1.1rem; }
address { font-style: normal; }
.visit-grid address, .visit-grid p { margin-bottom: 1.1rem; font-size: 1.1rem; }
.note, small { color: #4c5f50; font-size: .9rem; }
.calendar-layout { display: grid; grid-template-columns: minmax(270px, 360px) 1fr; gap: clamp(2rem, 6vw, 6rem); margin-top: 3rem; align-items: start; }
.date-card { background: #eaf0d8; padding: 1.4rem; border: 1px solid var(--line); }
.month-nav, .calendar-foot { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.month-nav h2 { font-size: 1.65rem; letter-spacing: -.035em; }
.month-nav a { padding: 0 .65rem; font-size: 1.8rem; line-height: 1.3; text-decoration: none; }
.date-grid { display: grid; grid-template-columns: repeat(7,1fr); gap: .25rem 0; margin: 1rem 0; text-align: center; }
.date-grid b { font-size: .76rem; color: #4e5d49; }
.day { line-height: 2rem; }
.day a { display: block; background: var(--forest); color: white; border-radius: 4px; }
.today { box-shadow: inset 0 0 0 1px #617151; border-radius: 4px; }
.calendar-foot { border-top: 1px solid var(--line); padding-top: 1rem; font-size: .86rem; }
.agenda { border-top: 2px solid var(--ink); padding-top: 1.3rem; }
.agenda h3 { margin-top: 1.1rem; }
.agenda p, .agenda .text-link { margin-top: .55rem; }
.event { border-top: 1px solid var(--line); padding: 1rem 0; }
.event .actions { margin-top: .5rem; }
.notice { background: #eaf0d8; padding: 1rem 1.3rem; border-left: 3px solid #688537; margin-bottom: 1.2rem; }
.login-wrap { max-width: 34rem; margin-inline: auto; min-height: 65vh; padding: 5rem 1.25rem; }
.login-wrap h1 { font-size: 3.6rem; }
.login-wrap form { display: grid; gap: .8rem; margin-top: 2rem; }
.login-wrap label { font-weight: 650; }
input { width: 100%; padding: .8rem; background: white; border: 1px solid #83917f; border-radius: 3px; }
.login-wrap button { justify-self: start; }
.admin-grid { display: grid; grid-template-columns: 13rem 1fr; gap: clamp(2rem, 6vw, 7rem); padding-block: 3rem; min-height: 65vh; }
.admin-grid aside { border-right: 1px solid var(--line); padding-right: 1.25rem; }
aside nav { display: grid; gap: .15rem; margin: 1rem 0; }
aside nav a { text-decoration: none; padding: .4rem .7rem; }
aside nav [aria-current], aside nav a:hover { background: #e1eace; }
.admin-content h1 { font-size: clamp(2.7rem, 5vw, 4.5rem); margin-block: .8rem 2rem; }
.admin-content h2 { margin-top: 2rem; }
.admin-content .notice { margin-top: 1.5rem; }
.status-list, .audit { padding: 0; list-style: none; }
.status-list div, .audit li { border-top: 1px solid var(--line); padding: .8rem 0; }
dt { font-weight: 700; }
dd { margin: .35rem 0 0; }
dd small, .audit small { display: block; }
@media (max-width: 760px) {
  .wrap { width: calc(100% - 2.5rem); }
  .mast { gap: 1rem; min-height: 74px; flex-wrap: wrap; padding-block: .85rem; }
  .mast .wordmark { width: 10rem; }
  .mast nav { order: 3; flex: 0 0 100%; justify-content: space-between; border-top: 1px solid #435146; padding-top: .65rem; gap: 1rem; }
  .header-order { min-height: 40px; padding: .55rem 1rem; }
  .hero, .story { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-block: 2rem; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(4rem, 13vw, 6rem); }
  .art { min-height: 0; aspect-ratio: 1.65; }
  .quick-inner { grid-template-columns: 1fr; padding-block: .5rem; }
  .quick-inner div, .quick-inner div + div { padding: .7rem 0; border: 0; }
  .quick-inner div + div { border-top: 1px solid #c1ccb2; }
  .quick-inner div { grid-template-columns: .85fr 1.4fr; align-items: center; }
  .quick-inner span { font-size: .74rem; }
  .quick-inner strong, .quick-inner a { font-size: 1rem; }
  .band-inner, .footer-inner { align-items: flex-start; flex-direction: column; }
  .visit-grid, .calendar-layout, .admin-grid { grid-template-columns: 1fr; }
  .visit-grid { margin-top: 2rem; }
  .date-card { max-width: 27rem; }
  .admin-grid aside { padding: 0 0 1rem; border: 0; border-bottom: 1px solid var(--line); }
  aside nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 360px) {
  .mast .wordmark { width: 8rem; }
  .quick-inner div { grid-template-columns: 1fr; }
}

/* Owner operating overview */
.admin-grid:has(.op) {width:min(94%,92rem);grid-template-columns:11rem minmax(0,1fr);gap:clamp(1.5rem,4vw,5rem)}
.admin-content:has(.op) {min-width:0}
.op {margin:1.6rem 0 3rem;--op-soft:#e6eddc}
.op-head,.op-section-head,.op-toolbar,.op-toolbar nav,.op-hero,.op-editor form,.op-custom form{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}
.op-head,.op-section-head,.op-hero{justify-content:space-between}
.admin-content .op-head h2{margin:0;font-size:clamp(1.6rem,3vw,2.25rem)}
.op-source{font-size:.84rem;font-weight:650;color:#2e5136;border:1px solid #acc29e;border-radius:4px;padding:.25rem .55rem}
.op-toolbar{margin-top:1.15rem;align-items:baseline}.op-toolbar nav{gap:.15rem}
.op-toolbar a,.op button{display:inline-block;font:600 .9rem/1.3 var(--body);color:var(--ink);padding:.49rem .7rem;text-decoration:none;border-radius:4px}
.op-toolbar a[aria-current]{background:var(--forest);color:white}
.op-toolbar a:hover,.op a:hover{text-decoration:underline}.op summary{cursor:pointer;font-weight:600}
.op-custom summary,.op-method summary{font-size:.9rem}.op-custom form,.op-editor form{align-items:flex-end;margin:.8rem 0}
.op form label{font-size:.875rem;font-weight:600;display:grid;gap:.25rem}.op input{font:inherit;padding:.45rem .6rem;width:10.5rem;max-width:100%}
.op button{border:1px solid var(--forest);background:var(--forest);color:white;cursor:pointer;min-height:38px}
.op-period,.op-asof{font-size:.9rem;color:#4d6051}.op-period{margin:.8rem 0}
.op-hero{background:#1c3c30;color:#f7f5e9;padding:clamp(1.3rem,3vw,2.6rem);border-radius:4px}
.op-hero h3{font:650 1rem/1.3 var(--body);color:#d6e4cd}.op-hero strong{font:500 clamp(3.1rem,6vw,5.4rem)/1.05 var(--display);letter-spacing:-.045em;display:block;margin:.4rem 0}
.op-hero span,.op-hero p{font-size:.95rem;color:#d3e1cb}.op-hero p{max-width:27ch}
.op-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:.85rem 0 1.7rem;border-block:1px solid var(--line)}
.op-kpis>div{padding:1rem .85rem 1rem 0}.op-kpis dt{font-size:.88rem}.op-kpis dd{font:500 clamp(1.4rem,2.9vw,2.5rem)/1.2 var(--display);overflow-wrap:anywhere}
.op-kpis small,.op-costs small{font-size:.82rem;color:#506253}.op-section-head{margin:1.7rem 0 .5rem}.op-section-head a,.op-table a{font-weight:600;font-size:.9rem}
.op-costs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 2rem;margin:.4rem 0}.op-cost-row{display:flex;align-items:baseline;justify-content:space-between;gap:.55rem;border-top:1px solid var(--line);padding:.7rem 0}
.op-cost-row dd,.op-table{font-variant-numeric:tabular-nums}.op-cost-row dd{white-space:nowrap;font-weight:650}
.op-editor,.op-method{border:1px solid var(--line);padding:.65rem .85rem;border-radius:4px;margin:.8rem 0}.op-editor p,.op-method p{max-width:80ch;font-size:.93rem;margin:.65rem 0}.op-editor[open]{background:#edf1e1}
.op-table{max-width:100%;overflow:auto}.op-table table{border-collapse:collapse;width:100%;text-align:right;font-size:.93rem}
.op-table th,.op-table td{padding:.6rem .55rem;border-bottom:1px solid var(--line);white-space:nowrap}.op-table th:first-child{text-align:left}
.op-table thead{background:var(--op-soft)}.op-table th{font-weight:650}.op-rate meter{display:block;margin:.15rem 0 0 auto;width:4rem;height:.45rem;accent-color:#627c4d}
.op-notes,.op-saved{background:var(--op-soft);padding:.7rem 1.5rem;font-size:.92rem}
@media(max-width:760px){.admin-grid:has(.op){grid-template-columns:minmax(0,1fr);width:calc(100% - 2.5rem)}.op-costs{grid-template-columns:1fr}.op-kpis{gap:.4rem}.op-kpis>div{padding-right:0}}
@media(max-width:480px){.op-kpis{grid-template-columns:1fr}.op-kpis>div{display:grid;grid-template-columns:1fr auto;align-items:center;padding:.55rem 0}.op-kpis>div+div{border-top:1px solid var(--line)}.op-kpis small{grid-column:1/-1}.op-custom form,.op-editor form{align-items:start}.op-toolbar nav{gap:0}.op-toolbar a{padding:.4rem .5rem}}

/* Employees */
.staff-tabs,.staff-week,.staff-week nav,.staff-week form,.staff-slot{display:flex;align-items:center;gap:.85rem;flex-wrap:wrap}
.staff-tabs{gap:.25rem}.staff-tabs a{font-weight:650;text-decoration:none;padding:.55rem .85rem;border-radius:4px}
.staff-tabs a[aria-current]{background:var(--forest);color:white}
.staff-week{justify-content:space-between;padding:1rem 0;border-block:1px solid var(--line);margin:1.1rem 0}
.staff-week strong,.staff-week small,.staff-slot small{display:block}.staff-week small,.staff-slot small,.employee-note{color:#506253}
.staff-week form{align-items:end}.staff-week nav a,.staff-slot a{font-weight:600;font-size:.9rem}
.employees .op-section-head h2{margin:0}.employee-note,.employee-empty{font-size:.92rem;max-width:85ch;margin:.65rem 0 1rem}
.staff-agenda{border-top:1px solid var(--line)}.staff-agenda section{display:grid;grid-template-columns:minmax(6rem,22%) 1fr;padding:.8rem .25rem;gap:1rem;border-bottom:1px solid var(--line)}
.staff-agenda h3{font:650 1rem/1.45 var(--body)}.staff-slot{justify-content:space-between;gap:.5rem}.staff-slot+.staff-slot{margin-top:.55rem}
.staff-slot strong,.employee-table th{overflow-wrap:anywhere}.staff-slot small{font-size:.9rem}
.employee-table td[colspan]{text-align:left}
.staff-feed-status{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.4rem 1rem;padding:.8rem 0}
.staff-feed-status small,.staff-today h3 small{color:#506253}.staff-today h3 small{display:block;font-family:var(--body);font-size:.8rem}
.staff-agenda .staff-today{background:#edf1e1;box-shadow:inset 3px 0 #4f694c;padding-left:.65rem}
[data-feed-message]:empty{display:none}
@media(max-width:550px){.staff-week{align-items:start}.staff-agenda section{gap:.5rem}.staff-week nav{gap:.65rem}}

/* Analytics, CRM and social planning */
.phase-card{border:1px solid var(--line);border-radius:5px;padding:clamp(.85rem,2vw,1.35rem);margin:1rem 0;background:#fbfaf4;min-width:0}
.phase h3,.ga-trend figcaption{font:650 1.15rem/1.3 var(--body);margin:0 0 .7rem}
.phase-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.phase-card .phase-columns{margin-top:.8rem}.phase-card p,.updates p{margin:.55rem 0 .9rem}.phase-card small{display:block;font-weight:400}
.phase-links,.phase-filters{display:flex;align-items:center;gap:.7rem 1.1rem;flex-wrap:wrap;margin:1rem 0}
.phase-links a,.phase a{font-weight:600}.phase-primary{background:var(--forest);color:white;border-radius:4px;padding:.55rem 1rem;text-decoration:none}
.phase-form,.phase-card form,.updates form{display:grid;align-content:start;justify-items:start;gap:.8rem;margin:.7rem 0}
.phase-form label,.phase-card form label,.phase-filters label,.updates label{display:grid;gap:.3rem;max-width:100%;font-weight:600}
.phase-filters{align-items:end}.phase input,.phase select,.phase textarea,.updates input{font:inherit;border:1px solid #83917f;border-radius:3px;padding:.5rem;background:white;max-width:100%}
.phase select{min-height:2.45rem}.phase textarea{width:min(32rem,100%);min-height:5rem}.phase-form label:has(textarea){width:min(100%,32rem)}
.phase .check,.updates .check{display:flex;align-items:baseline;gap:.5rem;font-weight:400}.check input[type=checkbox]{width:auto;flex:none}
.phase button.secondary{background:transparent;color:var(--forest)}.updates{max-width:45rem}.updates form{max-width:32rem}
.phase-timeline{list-style:none;padding:0}.phase-timeline li{padding:.65rem 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.phase-timeline small{color:#4e6154}
.ga-trend{background:#e5eddf;border-radius:5px;padding:1rem;margin:1rem 0}.ga-trend svg{display:block;width:100%;height:7rem;fill:#456849;border-bottom:1px solid #70836c;margin-top:.6rem}.ga-trend small{color:#435b49}.ga-trend details{margin-top:.7rem;font-size:.9rem}
.ga-axis{display:flex;justify-content:space-between;font-size:.82rem;margin-top:.3rem}
.social-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));border-top:1px solid var(--line);border-left:1px solid var(--line)}
.social-calendar>b,.social-day,.social-calendar .outside{border-bottom:1px solid var(--line);border-right:1px solid var(--line);padding:.35rem}
.social-calendar>b{background:#e5eddf;text-align:center;font-size:.85rem}.social-day{min-height:4rem}.social-day.today{background:#e9efd9}
.social-day a{display:block;margin:.25rem 0;font-size:.78rem;overflow-wrap:anywhere}.social-preview img{width:min(100%,20rem);max-height:16rem;object-fit:contain;background:white}
.post-copy{white-space:pre-wrap;overflow-wrap:anywhere}.social-gallery{display:flex;gap:.8rem;flex-wrap:wrap}.social-gallery figure{width:7rem;margin:0;font-size:.82rem;overflow-wrap:anywhere}.social-gallery img{width:100%;height:5rem;object-fit:contain}
@media(max-width:850px){.phase-columns{grid-template-columns:minmax(0,1fr);gap:0}}
@media(max-width:520px){.social-calendar>b,.social-day,.social-calendar .outside{padding:.16rem}.social-day{min-height:2.7rem}.social-day a{font-size:.7rem}.phase input,.phase select{min-width:0}}

/* Menu profitability */
.profitability .visually-hidden {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.profit-intro {max-width:60ch;font-size:1.1rem;margin-bottom:.8rem}
.profit-source,.profit-fields {display:flex;align-items:center;flex-wrap:wrap;gap:.55rem 1rem}
.profit-source {font-size:.87rem;color:#455b49;margin-bottom:1.4rem}
.profitability .op-section-head {align-items:baseline}
.profitability .op-section-head h2,.profitability .op-toolbar {margin:0}
.profit-table {width:100%;border-collapse:collapse;line-height:1.35;font-size:.94rem;font-variant-numeric:tabular-nums}
.profit-table th,.profit-table td {padding:.8rem .45rem;text-align:right;border-bottom:1px solid var(--line)}
.profit-table thead th {background:#e7eddf;color:#304a37;font-size:.83rem}
.profit-table th:first-child {text-align:left;padding-left:.75rem}
.profit-table th[scope=row] small {display:block;color:#49604e;font-size:.8rem;font-weight:400;margin-top:.15rem}
.profit-table .profit-edit {padding-right:.75rem}
.profit-label {display:none}
.profitability > .op-asof {margin-top:1.1rem;max-width:80ch}
.profit-editor {max-width:50rem}
.profit-editor form {display:block}
.profit-fields {align-items:end;margin:1.3rem 0}
.profit-preview {background:#e7eddf;border-radius:4px;padding:.8rem 1rem}
.profit-preview dl {display:flex;gap:.8rem 2rem;flex-wrap:wrap;margin:0}
.profit-preview dt {font-size:.83rem}
.profit-preview dd {margin:0;font:500 1.75rem/1.35 var(--display)}
.profit-editor .phase-links {margin-bottom:0}
@media(max-width:960px) {
  .profit-table,.profit-table tbody {display:block}
  .profit-table thead {position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
  .profit-table tr {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem 1rem;border:1px solid var(--line);border-radius:4px;padding:.85rem 1rem;margin:.7rem 0}
  .profit-table th,.profit-table td,.profit-table th:first-child,.profit-table .profit-edit {text-align:left;border:0;padding:0;overflow-wrap:anywhere}
  .profit-table th[scope=row] {grid-column:1/-1;border-bottom:1px solid var(--line);padding-bottom:.5rem;font-size:1.05rem}
  .profit-label {display:block;font-size:.78rem;color:#49604e}
  .profit-edit {align-self:end}
}
@media(max-width:430px) {
  .profit-table tr {grid-template-columns:repeat(2,minmax(0,1fr))}
  .profit-preview dl {display:grid;gap:.45rem}
  .profit-preview dl>div {display:flex;justify-content:space-between;align-items:center;gap:.5rem}
  .profit-preview dd {font-size:1.35rem}
}
