/* The Bookkeeper's Desk: shared styles for every page. Product page styles are in detail.css. */
:root {
  --ink: #1E4A5C;
  --ink-soft: #4E6B6D;
  --cream: #FBF8F2;
  --paper: #FFFFFF;
  --line: #E6DFD2;
  --teal: #2BB3C0;
  --green: #4FAE82;
  --gold: #F2B33D;
  --coral: #F26D5B;
  --pink: #EC4F8B;
  --purple: #8E5CC8;
  --ring: linear-gradient(90deg, var(--teal), var(--green), var(--gold), var(--coral), var(--pink), var(--purple));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: Jost, system-ui, sans-serif; font-size: 18px; line-height: 1.6;
}
a { color: var(--ink); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.script { font-family: 'Dancing Script', cursive; font-weight: 700; }

/* header */
header { position: sticky; top: 0; z-index: 10; background: rgba(251,248,242,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand span { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 26px; white-space: nowrap; }
nav { display: flex; gap: 22px; align-items: center; }
nav a { text-decoration: none; font-weight: 500; font-size: 16px; }
nav a:hover { color: var(--coral); }
.btn {
  display: inline-block; background: var(--ink); color: #fff; text-decoration: none; font-weight: 600;
  padding: 12px 22px; border-radius: 999px; font-size: 16px; border: 2px solid var(--ink);
}
.btn:hover { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
nav .btn { padding: 8px 16px; color: #fff; }

/* hero */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
h1 { font-size: 50px; line-height: 1.12; margin: 10px 0 18px; font-weight: 600; }
h1 .script { font-size: 1.2em; color: var(--coral); }
.hero p.lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 28px; max-width: 34em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero img { width: 100%; max-width: 420px; justify-self: center; }

.ribbon { height: 6px; background: var(--ring); opacity: .85; }

section { padding: 72px 0; }
h2 { font-size: 36px; line-height: 1.2; margin: 6px 0 14px; font-weight: 600; }
.section-intro { color: var(--ink-soft); max-width: 40em; margin: 0 0 36px; }

/* services */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--accent); }
.card h3 { font-size: 23px; margin: 4px 0 8px; line-height: 1.25; }
.card .price { font-weight: 600; color: var(--accent-ink, var(--ink)); margin: 0 0 12px; }
.card p { margin: 0 0 14px; color: var(--ink-soft); font-size: 17px; }
.card ul { margin: 0 0 18px; padding-left: 20px; font-size: 16px; }
.card ul li { margin-bottom: 4px; }
.card .more { margin-top: auto; font-weight: 600; font-size: 16px; }
.shop-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* products */
.shop { background: #EEF6F5; border-top: 1px solid var(--line); }
.shop-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 8px 0 18px; }
.shop-head h3 { margin: 0; font-size: 24px; }
.shop-head span { color: var(--ink-soft); font-size: 16px; }
.mods { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-bottom: 44px; }
.mod { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; }
.mod { grid-column: span 2; }
.mod:nth-last-child(-n+2) { grid-column: span 3; }
.mods .mod.feature { grid-column: 1 / -1; }
.mod-sub { margin: -4px 0 10px !important; font-size: 15px !important; font-weight: 500; }
.mod-note { font-size: 14px !important; font-style: italic; }
.mod-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mod h4 { margin: 0 0 6px; font-size: 19px; line-height: 1.3; }
.mod-price { font-weight: 600; color: var(--coral); white-space: nowrap; }
.mod p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16px; }
.mod-btn { margin-top: auto; align-self: flex-start; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid var(--ink); border-radius: 999px; padding: 6px 16px; }
.mod-btn:hover { background: var(--ink); color: #fff; }
.tpl-box { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.chips span { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; }
.tpl-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.custom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border: 2px dashed var(--teal); border-radius: 16px; padding: 20px 24px; }

/* odoo fixes */
.alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fixes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 36px; padding: 0; margin: 0; list-style: none; }
.fixes li { padding-left: 34px; position: relative; }
.fixes li::before { content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--c, var(--teal)); }
.fixes li:nth-child(6n+2) { --c: var(--green); } .fixes li:nth-child(6n+3) { --c: var(--gold); }
.fixes li:nth-child(6n+4) { --c: var(--coral); } .fixes li:nth-child(6n+5) { --c: var(--pink); }
.fixes li:nth-child(6n+6) { --c: var(--purple); }
.fixes b { display: block; }
.fixes span { color: var(--ink-soft); font-size: 16px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-family: 'Dancing Script', cursive; font-size: 30px; font-weight: 700; color: var(--ink);
  border: 5px solid var(--c); margin-bottom: 12px;
}
.step:nth-child(1) { --c: var(--teal); } .step:nth-child(2) { --c: var(--gold); }
.step:nth-child(3) { --c: var(--pink); } .step:nth-child(4) { --c: var(--purple); }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 16px; }

/* about */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: start; }
.about img { width: 220px; height: 220px; border-radius: 50%; }
.about p { margin: 0 0 14px; }

/* faq */
details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--ink-soft); }

/* contact */
.contact { text-align: center; }
.contact .box { background: var(--ink); color: #fff; border-radius: 24px; padding: 56px 28px; position: relative; overflow: hidden; }
.contact .box::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ring); }
.contact h2 { color: #fff; }
.contact p { color: #D9E6EA; max-width: 34em; margin: 0 auto 26px; }
.contact .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.contact .btn:hover { background: #fff; border-color: #fff; }
.contact .email { display: block; margin-top: 16px; color: #fff; font-size: 17px; }

footer { padding: 32px 0 48px; color: var(--ink-soft); font-size: 15px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* email popup */
dialog.mail { border: none; border-radius: 20px; padding: 28px; max-width: 420px; width: calc(100% - 32px); color: var(--ink); background: var(--paper); box-shadow: 0 20px 60px rgba(30,74,92,.25); }
dialog.mail::backdrop { background: rgba(30,74,92,.45); }
dialog.mail h3 { margin: 0 0 6px; font-size: 24px; }
dialog.mail p { margin: 0 0 4px; color: var(--ink-soft); font-size: 16px; }
dialog.mail .addr { font-weight: 600; color: var(--ink); word-break: break-all; font-size: 17px; margin-bottom: 4px; }
dialog.mail .subj { margin-bottom: 20px; }
dialog.mail .acts { display: flex; flex-direction: column; gap: 10px; }
dialog.mail .acts .btn { text-align: center; cursor: pointer; font-family: inherit; }
dialog.mail .x { position: absolute; top: 12px; right: 14px; background: none; border: none; font-size: 26px; line-height: 1; color: var(--ink-soft); cursor: pointer; }

@media (max-width: 900px) {
  nav a:not(.btn) { display: none; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero img { max-width: 260px; order: -1; }
  h1 { font-size: 38px; }
  .cards { grid-template-columns: 1fr; }
  .mods { grid-template-columns: 1fr 1fr; }
  .mod, .mod:nth-last-child(-n+2) { grid-column: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .brand span { font-size: 22px; }
  .brand img { width: 38px; height: 38px; }
  nav .btn { padding: 7px 12px; font-size: 14px; }
  .hero { padding: 40px 0 40px; }
  h1 { font-size: 33px; }
  h2 { font-size: 29px; }
  section { padding: 52px 0; }
  .fixes, .steps, .mods { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about img { width: 150px; height: 150px; }
  .contact .box { padding: 40px 20px; }
}

/* footer links */
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { color: var(--ink-soft); }
.foot-links a:hover { color: var(--coral); }

/* product pages: links to the other tools */
.d-more { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 28px; }
.d-more h3 { margin: 0 0 12px; font-size: 20px; }
.d-more .chips a { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 15px; text-decoration: none; font-weight: 500; }
.d-more .chips a:hover { border-color: var(--coral); color: var(--coral); }

/* guide cards (home page and guides list) */
.g-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.g-card { background: var(--paper); border: 1px solid var(--line); border-top: 6px solid var(--teal); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
.g-card:nth-child(2n) { border-top-color: var(--pink); }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,74,92,.12); }
.g-card:hover .mod-btn { background: var(--ink); color: #fff; }
.g-card h2, .g-card h3 { font-size: 21px; line-height: 1.3; margin: 0 0 8px; }
.g-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: 16px; }
.g-all { margin: 24px 0 0; }
.g-all .more { font-weight: 600; }
.guides { padding: 48px 0 72px; min-height: 50vh; }

/* a guide */
.guide { padding: 36px 0 72px; }
.g-wrap { max-width: 780px; }
.guide h1 { font-size: 42px; }
.guide .lead { font-size: 20px; color: var(--ink-soft); }
.g-meta { font-size: 15px; color: var(--ink-soft); margin: -6px 0 24px; }
.guide article h2 { font-size: 24px; margin: 36px 0 8px; }
.g-steps { list-style: none; padding: 0; margin: 28px 0; counter-reset: g; }
.g-steps li { counter-increment: g; position: relative; padding-left: 62px; margin-bottom: 26px; }
.g-steps li::before {
  content: counter(g); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  font-family: 'Dancing Script', cursive; font-size: 26px; font-weight: 700; border: 4px solid var(--c, var(--teal));
}
.g-steps li:nth-child(6n+2) { --c: var(--green); } .g-steps li:nth-child(6n+3) { --c: var(--gold); }
.g-steps li:nth-child(6n+4) { --c: var(--coral); } .g-steps li:nth-child(6n+5) { --c: var(--pink); }
.g-steps li:nth-child(6n+6) { --c: var(--purple); }
.g-steps h2 { font-size: 22px !important; margin: 4px 0 6px !important; line-height: 1.3; }
.g-steps p { margin: 0 0 10px; }
.g-note { background: #EEF6F5; border-left: 6px solid var(--teal); border-radius: 12px; padding: 16px 20px; margin: 24px 0; font-size: 17px; }
.g-note b { display: block; margin-bottom: 2px; }
.g-cta { background: var(--ink); color: #fff; border-radius: 24px; padding: 40px 32px 44px; margin: 48px 0 0; position: relative; overflow: hidden; }
.g-cta::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--ring); }
.g-cta .script { font-size: 30px; color: var(--gold); line-height: 1; }
.g-cta h2 { color: #fff; margin: 4px 0 10px; }
.g-cta p { color: #D9E6EA; margin: 0 0 22px; }
.g-cta .btn { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.g-cta .btn:hover { background: #fff; border-color: #fff; }
.g-cta .btn.ghost { background: transparent; border-color: #fff; color: #fff; }
.g-cta .btn.ghost:hover { background: #fff; color: var(--ink); }
.g-more { margin-top: 40px; }
.g-more h3 { margin: 0 0 8px; font-size: 20px; }
.g-more ul { margin: 0; padding-left: 20px; }

@media (max-width: 900px) {
  .g-cards { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .guide h1 { font-size: 31px; }
  .guide article h2 { font-size: 22px; }
  .g-steps li { padding-left: 52px; }
  .g-steps li::before { width: 38px; height: 38px; font-size: 22px; }
  .g-steps h2 { font-size: 20px !important; }
  .g-cta { padding: 32px 20px 36px; }
}

  main section, .detail { scroll-margin-top: 72px; }
  a.mod { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s; }
  a.mod:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(30,74,92,.12); }
  a.mod:hover .mod-btn { background: var(--ink); color: #fff; }

  /* product detail pages */
  .detail { padding: 36px 0 72px; }
  .back { display: inline-block; font-weight: 600; text-decoration: none; margin-bottom: 22px; }
  .back:hover { color: var(--coral); }
  .d-head { display: grid; grid-template-columns: 1fr 260px; gap: 36px; align-items: start; border-left: 8px solid var(--accent); padding-left: 26px; margin-bottom: 44px; }
  .d-head h1 { margin: 6px 0 12px; }
  .d-head .lead { font-size: 20px; color: var(--ink-soft); margin: 0 0 18px; }
  .works { display: flex; flex-wrap: wrap; gap: 8px; }
  .works span { background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 500; }
  .d-buy { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
  .d-price { font-size: 30px; font-weight: 600; color: var(--coral); line-height: 1.1; }
  .d-sub { font-weight: 500; margin-top: -6px; }
  .d-buy .btn { text-align: center; }
  .d-small { font-size: 14px; color: var(--ink-soft); line-height: 1.4; }
  .shots { display: flex; flex-direction: column; gap: 48px; margin-bottom: 56px; }
  .shot { display: grid; grid-template-columns: 1.6fr 1fr; gap: 36px; align-items: center; margin: 0; }
  .shot.flip { grid-template-columns: 1fr 1.6fr; }
  .shot.flip .shot-art { order: 2; }
  .shot > * { min-width: 0; }
  .shot figcaption { display: flex; flex-direction: column; gap: 6px; }
  .shot figcaption b { font-size: 22px; line-height: 1.3; }
  .shot figcaption span:last-child { color: var(--ink-soft); }
  .shot-n { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 17px; border: 4px solid var(--teal); }
  .shot:nth-child(2) .shot-n { border-color: var(--gold); }
  .shot:nth-child(3) .shot-n { border-color: var(--pink); }
  .shot:nth-child(4) .shot-n { border-color: var(--purple); }
  .d-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; margin-bottom: 36px; }
  .d-grid h3 { margin: 0 0 12px; font-size: 22px; }
  .d-list { margin: 0; padding-left: 22px; }
  .d-list li { margin-bottom: 8px; }
  .d-notes { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
  .d-notes p { margin: 0 0 12px; font-size: 16px; color: var(--ink-soft); }
  .d-notes p:last-child { margin: 0; }
  .d-foot { display: flex; gap: 12px; flex-wrap: wrap; }

  /* drawings: simplified screens with sample data */
  .mk { background: #fff; border: 1px solid #D6DADF; border-radius: 12px; overflow: hidden; box-shadow: 0 14px 34px rgba(30,74,92,.14); font: 13px/1.45 'Segoe UI', system-ui, sans-serif; color: #2c3338; position: relative; }
  .mk-top { display: flex; align-items: center; gap: 6px; background: #EEF0F2; padding: 8px 12px; border-bottom: 1px solid #DDE1E4; }
  .mk-top i { width: 10px; height: 10px; border-radius: 50%; background: #D3D7DB; }
  .mk-top span { margin-left: 10px; background: #fff; border-radius: 6px; padding: 2px 12px; font-size: 12px; color: #6b747c; flex: 1; max-width: 260px; }
  .mk-body { position: relative; }
  .o-bar { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 8px 14px; font-size: 13px; }
  .o-grid { width: 14px; height: 14px; background: radial-gradient(circle, #fff 1.5px, transparent 2px) 0 0 / 5px 5px; }
  .o-cp { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #E6E9EC; flex-wrap: wrap; }
  .o-crumbs { color: #6b747c; font-weight: 600; }
  .o-crumbs em { font-style: normal; margin: 0 4px; }
  .o-btns { display: flex; gap: 6px; flex-wrap: wrap; }
  .ob { display: inline-block; border: 1px solid #CED4DA; border-radius: 6px; padding: 3px 10px; font-weight: 600; font-size: 12px; background: #fff; color: #2c3338; }
  .ob-main { background: var(--teal); border-color: var(--teal); color: #fff; }
  .o-sheet { padding: 14px; display: flex; flex-direction: column; gap: 12px; background: #F8F9FA; }
  .ofs { display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 8px 18px; background: #fff; border: 1px solid #E6E9EC; border-radius: 8px; padding: 12px 14px; }
  .of { display: flex; flex-direction: column; min-width: 0; }
  .of label { font-size: 11px; color: #6b747c; font-weight: 600; }
  .of span { border-bottom: 1px solid #E1E5E8; padding: 1px 0 3px; min-height: 22px; }
  .ot { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #E6E9EC; font-size: 12.5px; }
  .ot th { text-align: left; font-size: 11px; color: #6b747c; background: #F1F3F5; padding: 6px 8px; font-weight: 700; }
  .ot td { padding: 6px 8px; border-top: 1px solid #EEF0F2; }
  .ot .r { text-align: right; }
  .ot tr.hl td { background: #FFF6E3; }
  .ot a { color: #155A63; }
  .o-banner { border-radius: 8px; padding: 9px 12px; font-size: 13px; }
  .o-warn { background: #FFF4DA; border: 1px solid #F2D58E; color: #6B4E0E; }
  .o-info { background: #E3F4F6; border: 1px solid #A9DDE2; color: #155A63; }
  .o-bad { background: #FDE8E5; border: 1px solid #F3B4AA; color: #8A2A1C; }
  .o-good { background: #E4F4EC; border: 1px solid #A9D9BF; color: #1E5E3E; }
  .o-chip { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 600; background: #EEF0F2; }
  .o-chip.g { background: #E4F4EC; color: #1E5E3E; }
  .o-chip.y { background: #FFF4DA; color: #6B4E0E; }
  .o-chip.r { background: #FDE8E5; color: #8A2A1C; }
  .o-chip.b { background: #E3F4F6; color: #155A63; }
  .o-note { font-size: 12px; color: #6b747c; margin: 2px 0 0; }
  .o-dim { position: relative; background: #8b949c; padding: 30px 18px; min-height: 240px; display: grid; place-items: center; }
  .o-under { position: absolute; inset: 0; opacity: .35; pointer-events: none; overflow: hidden; }
  .o-blank { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #9aa2a9 0 1px, transparent 1px 26px), #A9B0B6; opacity: .7; }
  .o-modal { position: relative; background: #fff; border-radius: 10px; width: 100%; max-width: 460px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
  .o-mh { display: flex; justify-content: space-between; padding: 12px 16px; font-weight: 700; font-size: 15px; border-bottom: 1px solid #E6E9EC; }
  .o-mh i { font-style: normal; color: #9aa2a9; }
  .o-mb { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
  .o-mb .ofs { border: none; padding: 0; }
  .o-mf { display: flex; gap: 6px; padding: 10px 16px; border-top: 1px solid #E6E9EC; }
  .o-drop { position: relative; }
  .o-menu { position: absolute; top: 100%; left: 0; margin-top: 2px; background: #fff; border: 1px solid #CED4DA; border-radius: 6px; box-shadow: 0 8px 18px rgba(0,0,0,.12); min-width: 220px; z-index: 2; font-size: 12.5px; }
  .o-menu div { padding: 6px 10px; }
  .o-menu div.muted { color: #9aa2a9; font-style: italic; }
  .o-menu div.hl { background: #F1F3F5; }
  .em { background: #fff; }
  .em-h { padding: 12px 16px; border-bottom: 1px solid #E6E9EC; display: flex; flex-direction: column; gap: 3px; }
  .em-h label { display: inline-block; width: 44px; color: #6b747c; font-size: 12px; }
  .em-s { font-weight: 700; font-size: 15px; margin-top: 4px; }
  .em-b { padding: 14px 16px; }
  .em-b p { margin: 0 0 8px; }
  .em-band { background: var(--ink); color: #fff; padding: 10px 16px; font-size: 11px; letter-spacing: 1.5px; font-weight: 700; }
  .xl { background: #fff; }
  .xl .ot { border: none; }
  .xl .ot td, .xl .ot th { white-space: nowrap; }
  .xl .ot th { background: #E8F0EC; color: #2c5442; }
  .xl .ot tr.tot td { font-weight: 700; border-top: 2px solid #9FC7B3; }
  .xl-tabs { display: flex; gap: 2px; background: #F1F3F5; padding: 4px 6px 0; border-top: 1px solid #DDE1E4; flex-wrap: wrap; }
  .xl-tabs span { padding: 3px 10px; font-size: 11.5px; color: #6b747c; border-radius: 4px 4px 0 0; }
  .xl-tabs span.on { background: #fff; color: #1E5E3E; font-weight: 700; box-shadow: inset 0 -2px 0 #4FAE82; }
  .portal { background: #fff; padding: 14px 16px; }
  .portal h5 { margin: 0 0 10px; font-size: 18px; }
  .portal .ot { border-radius: 8px; overflow: hidden; }
  .us-ring { box-shadow: 0 0 0 4px #F59B45, 0 0 0 9px rgba(245,155,69,.35); }
  .scroll-x { overflow-x: auto; }

  /* Understudy's own look */
  .us-frame { --ut: #24706F; --us: #0F4F50; --ua: #E4F1EF; }
  .us-pop { padding: 16px 18px; max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; }
  .us-brand { display: flex; align-items: center; gap: 8px; font-size: 16px; color: var(--us); }
  .us-logo { width: 22px; height: 22px; border-radius: 6px; background: var(--ut); }
  .us-tag { margin: 0 0 6px; color: #727d85; }
  .us-l { font-size: 11px; font-weight: 700; color: #4b545c; margin-top: 4px; }
  .us-in { border: 1px solid #D9E1E1; border-radius: 8px; padding: 6px 10px; }
  .us-opt { display: flex; gap: 10px; border: 1px solid #D9E1E1; border-radius: 10px; padding: 8px 10px; }
  .us-opt i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #b5c0c0; flex: none; margin-top: 2px; box-sizing: border-box; }
  .us-opt.on { background: var(--ua); border-color: var(--ut); }
  .us-opt.on i { border: 4px solid var(--ut); }
  .us-opt b { display: block; }
  .us-opt span { color: #727d85; font-size: 12px; }
  .us-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
  .us-check i { width: 14px; height: 14px; border: 2px solid #b5c0c0; border-radius: 3px; box-sizing: border-box; }
  .us-check span { width: 100%; color: #727d85; font-size: 12px; padding-left: 20px; }
  .us-go { background: #24706F; color: #fff; text-align: center; font-weight: 700; border-radius: 10px; padding: 9px; margin-top: 8px; }
  .us-rec { position: absolute; right: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px; background: #252A2E; color: #fff; border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 12px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
  .us-rec i { width: 9px; height: 9px; border-radius: 50%; background: #D94A43; }
  .us-rec b { background: #3a4147; border-radius: 999px; padding: 2px 10px; }
  .us-rec b.fin { background: #D94A43; }
  .us-ed { display: grid; grid-template-columns: 110px 1fr 130px; min-height: 300px; background: #F7F7F4; }
  .us-side { background: var(--us); color: #cfe3e2; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
  .us-side b { color: #fff; margin-bottom: 6px; }
  .us-side span { padding: 3px 8px; border-radius: 6px; }
  .us-side span.on { background: rgba(255,255,255,.14); color: #fff; }
  .us-main { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
  .us-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .us-title em { font-style: normal; font-size: 11px; background: var(--ua); color: var(--ut); border-radius: 999px; padding: 1px 8px; }
  .us-title small { font-weight: 400; color: #727d85; font-size: 11px; }
  .us-step { display: flex; gap: 10px; background: #fff; border: 1px solid #D9E1E1; border-radius: 10px; padding: 8px 10px; }
  .us-step p { margin: 0 0 6px; }
  .us-n { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--ut); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
  .us-thumb { display: block; width: 150px; height: 54px; border-radius: 6px; background: linear-gradient(#EEF0F2 0 12px, #fff 12px); border: 1px solid #DDE1E4; position: relative; }
  .us-thumb i { position: absolute; right: 22px; top: 18px; width: 22px; height: 22px; border-radius: 50%; border: 3px solid #F59B45; box-sizing: border-box; }
  .us-tip { background: #fdf0dd; border: 1px solid #f0d3a8; color: #8a5a12; border-radius: 10px; padding: 7px 10px; font-size: 12px; }
  .us-panel { background: #fff; border-left: 1px solid #D9E1E1; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; }
  .us-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
  .us-tools span { border: 1px solid #D9E1E1; border-radius: 6px; padding: 1px 6px; }

  @media (max-width: 900px) {
    .d-head { grid-template-columns: 1fr; gap: 20px; padding-left: 18px; }
    .shot, .shot.flip { grid-template-columns: 1fr; gap: 16px; }
    .shot.flip .shot-art { order: 0; }
    .d-grid { grid-template-columns: 1fr; }
    .us-ed { grid-template-columns: 1fr; }
    .us-side, .us-panel { display: none; }
  }
  @media (max-width: 600px) {
    .ofs { grid-template-columns: 1fr; }
    .mk { font-size: 12px; }
    .ot { font-size: 11.5px; }
    .ot th, .ot td { padding: 5px 5px; }
  }
