/* "Two chairs" copy of options-site/kit/sim.css: the base, then this option's own layout and the audit fixes at the end.
   Simulated Elefo: the Companion (front-desk app) and the Console (web), linked.
   Colours, sizes and type follow the product (packages/ui tokens, app redesign 29 Nov 2026). */
.esim {
  --s-ground: #EDE7DD; --s-card: #FFFDF9; --s-paper: #F7F3EC; --s-paper-2: #EFE9DE; --s-paper-3: #E4DCCF;
  --s-ink: #1F1B17; --s-ink-2: #5A524A; --s-ink-3: #7A7268; --s-rule: #E6DFD3; --s-rule-strong: #CFC6B8;
  --s-accent: #B0521F; --s-accent-soft: #F6E6D6; --s-danger: #8E2330; --s-ok: #3E6B3C; --s-note: #FBF1D3;
  --s-web: #F3F4F3; --s-host: #D8DBDF; --s-host-2: #C7CBD1; --s-host-line: #AEB4BC; --s-host-ink: #2B2F35;
  --s-ui: "Instrument Sans", "Segoe UI", system-ui, sans-serif; --s-serif: "Newsreader", Georgia, serif;
  font: 400 14px/20px var(--s-ui); color: var(--s-ink); -webkit-font-smoothing: antialiased; text-align: left;
  display: grid; gap: 14px; container-type: inline-size;
}
.esim *, .esim *::before, .esim *::after { box-sizing: border-box; }
.esim button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
.esim button:focus-visible, .esim [tabindex]:focus-visible { outline: 2px solid var(--s-ink); outline-offset: 2px; }
.esim svg.g { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* goals */
.esim__goals { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.esim__goal { display: inline-flex; align-items: center; gap: 8px; flex: none; white-space: nowrap; min-height: 36px; padding: 0 16px 0 6px; border-radius: 18px; border: 1px solid var(--sim-chip-rule, var(--s-rule-strong)); background: var(--sim-chip, var(--s-card)); color: var(--sim-chip-ink, var(--s-ink)); font-weight: 600; }
.esim__goal i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid currentColor; font: 600 12px/1 var(--s-ui); font-style: normal; }
.esim__goal.is-done i { background: var(--s-ink); border-color: var(--s-ink); color: #fff; }
.esim__goal.is-done { color: var(--sim-chip-ink-done, var(--s-ink-3)); }
.esim__goal.is-next { border-color: var(--s-accent); box-shadow: 0 0 0 1px var(--s-accent); }
.esim__sp { flex: 1; }
.esim__reset { min-height: 36px; padding: 0 10px; color: var(--sim-label, var(--s-ink-2)) !important; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.esim__tabs { display: none; height: 40px; padding: 3px; border-radius: 20px; background: var(--s-paper-3); font-weight: 600; font-size: 13px; }
.esim__tabs button { padding: 0 16px; border-radius: 17px; color: var(--s-ink-2); }
.esim__tabs button[aria-pressed="true"] { background: var(--s-card); color: var(--s-ink); box-shadow: 0 0 0 1px var(--s-rule-strong); }

/* stage */
.esim__stage { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
.esim__pane { display: grid; grid-template-rows: auto 1fr; gap: 8px; min-width: 0; }
.esim__cap { display: flex; align-items: baseline; gap: 8px; font: 600 11px/14px var(--s-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--sim-label, var(--s-ink-2)); }
.esim__cap b { font-weight: 600; opacity: .6; }
.esim__win { position: relative; height: var(--sim-h, 600px); border-radius: 14px; overflow: hidden; background: var(--s-host); box-shadow: 0 0 0 1px rgba(31,27,23,.14), 0 24px 48px -28px rgba(31,27,23,.45); }

/* host: plain practice software, deliberately greyer than Elefo */
.esim .pms { position: absolute; inset: 0; right: 344px; display: grid; grid-template-rows: 26px 30px 1fr; color: var(--s-host-ink); font: 400 11px/14px "Segoe UI", system-ui, sans-serif; }
.esim .pms__title { display: flex; align-items: center; gap: 8px; padding: 0 10px; background: #B7BCC3; font-weight: 600; white-space: nowrap; overflow: hidden; }
.esim .pms__menu { display: flex; align-items: center; gap: 14px; padding: 0 10px; background: var(--s-host-2); border-bottom: 1px solid var(--s-host-line); white-space: nowrap; overflow: hidden; }
.esim .pms__grid { display: grid; grid-template-columns: 34px repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; background: #F7F8F9; }
.esim .pms__grid > div { border-right: 1px solid #D9DDE2; border-bottom: 1px solid #E4E7EA; padding: 2px 4px; overflow: hidden; white-space: nowrap; }
.esim .pms__grid .hd { background: #EEF0F2; font-weight: 600; border-bottom-color: var(--s-host-line); }
.esim .pms__grid .tm { color: #5E656E; font-size: 10px; }
.esim .pms__grid .ap { background: #C9D6E8; border-left: 3px solid #7F97B8; } .esim .pms__grid .ap.b { background: #D7E3D0; border-left-color: #86A379; } .esim .pms__grid .ap.c { background: #E8DCC6; border-left-color: #B79B63; }

/* Companion */
.esim .app { position: absolute; top: 0; right: 0; bottom: 0; width: 344px; display: grid; grid-template-rows: 46px 1fr auto 54px; background: var(--s-ground); border-left: 1px solid rgba(31,27,23,.18); overflow: hidden; }
.esim .app__bar { display: flex; align-items: center; gap: 8px; padding: 0 12px; }
.esim .app__mark { width: 24px; height: 24px; }
.esim .app__chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 4px; border: 1px solid var(--s-rule-strong); border-radius: 17px; background: var(--s-card); font-weight: 600; }
.esim .av { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #CFE3E1; font: 600 10px/1 var(--s-ui); color: #1d3b3a; flex: none; }
.esim .av.b { background: #E9D9C4; color: #4d3a22; } .esim .av.c { background: #DCD7EA; color: #3a2f57; }
.esim .app__card { position: relative; margin: 0 8px; background: var(--s-card); border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px rgba(31,27,23,.05); }
.esim .app__page { position: absolute; inset: 0; overflow: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.esim .app__page > * { flex: none; }
.esim .app__act { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; }
.esim .fld { flex: 1; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 21px; border: 1px solid var(--s-rule-strong); background: var(--s-card); color: var(--s-ink-3); }
.esim .ib { display: grid !important; place-items: center; width: 42px; height: 42px; border-radius: 21px; border: 1px solid var(--s-rule-strong) !important; background: var(--s-card) !important; flex: none; }
.esim .app__dock { display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; padding: 0 12px 4px; }
.esim .app__dock button { position: relative; justify-self: center; display: grid; justify-items: center; gap: 2px; width: 68px; padding: 5px 0; border-radius: 14px; color: var(--s-ink-2); font: 600 11px/13px var(--s-ui); }
.esim .app__dock button[aria-current="true"] { background: var(--s-paper-3); color: var(--s-ink); }
.esim .app__dock svg.g { width: 21px; height: 21px; }
.esim .bdg { position: absolute; top: 0; left: 38px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--s-ink); color: #fff; font: 700 10px/17px var(--s-ui); text-align: center; box-shadow: 0 0 0 2px var(--s-ground); }
.esim .meta { font-size: 13px; line-height: 18px; color: var(--s-ink-2); }
.esim .late { color: var(--s-danger); font-weight: 600; }
.esim .h-serif { margin: 0; font: 500 25px/29px var(--s-serif); letter-spacing: -.01em; }
.esim .h-page { margin: 0; font: 500 26px/30px var(--s-serif); }
.esim .btn { display: inline-flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px !important; border-radius: 22px; border: 1px solid var(--s-rule-strong) !important; background: var(--s-card) !important; font: 600 14px/1 var(--s-ui) !important; white-space: nowrap; }
.esim .btn.pri { background: var(--s-accent) !important; border-color: var(--s-accent) !important; color: #fff !important; }
.esim .btn.sm { min-height: 36px; padding: 0 14px !important; border-radius: 18px; font-size: 13px !important; }
.esim .btn.grow { flex: 1; } .esim .btn.blk { width: 100%; }
.esim .pulse { animation: esim-pulse 2.4s ease-out infinite; }
@keyframes esim-pulse { 0% { box-shadow: 0 0 0 0 rgba(176,82,31,.32); } 70%, 100% { box-shadow: 0 0 0 6px rgba(176,82,31,0); } }

/* day line */
.esim .day { position: relative; height: 70px; margin: 0 6px; }
.esim .day__line { position: absolute; left: -6px; right: -6px; top: 36px; height: 3px; background: var(--s-paper-3); border-radius: 2px; }
.esim .day__past { position: absolute; left: -6px; top: 36px; height: 3px; background: var(--s-ink); border-radius: 2px; }
.esim .day__dot { position: absolute; top: 30px; width: 15px; height: 15px; margin-left: -7.5px; border-radius: 50%; background: var(--s-card); border: 2px solid var(--s-ink); transition: background .3s, border-color .3s; }
.esim .day__dot.is-late { background: var(--s-danger); border-color: var(--s-danger); box-shadow: 0 0 0 3px var(--s-card), 0 0 0 5px var(--s-danger); }
.esim .day__dot.is-done { background: var(--s-ink); }
.esim .day__t { position: absolute; top: 54px; transform: translateX(-50%); font: 500 11px/14px var(--s-ui); color: var(--s-ink-2); white-space: nowrap; }
.esim .day__t.is-late { color: var(--s-danger); font-weight: 700; }
.esim .day__you { position: absolute; top: 2px; width: 34px; height: 28px; margin-left: -17px; }
.esim .day__now { position: absolute; top: 29px; width: 2px; height: 17px; margin-left: -1px; background: var(--s-ink); }

/* rows */
.esim .lbl { font: 600 12px/16px var(--s-ui); color: var(--s-ink-2); margin-top: 4px; }
.esim .row { display: grid !important; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; column-gap: 12px; min-height: 52px; padding: 8px 0 !important; width: 100%; border-top: 1px solid var(--s-rule) !important; }
.esim .row:first-of-type { border-top: 0 !important; }
.esim .row__t { font-size: 14px; line-height: 19px; font-weight: 500; } .esim .row__m { display: block; font-size: 12px; line-height: 16px; color: var(--s-ink-2); font-weight: 400; }
.esim .row__r { font-size: 12px; color: var(--s-ink-2); white-space: nowrap; } .esim .row__r.late { color: var(--s-danger); }
.esim .row.is-new .row__t { font-weight: 700; } .esim .row.is-done .row__t { color: var(--s-ink-3); font-weight: 400; }
.esim .st { width: 19px; height: 19px; border-radius: 50%; border: 1.7px solid var(--s-ink-3); } .esim .st.late { border-color: var(--s-danger); } .esim .st.done { border-color: var(--s-ink-3); background: var(--s-ink-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 6.2l2 2 4-4.4' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/11px no-repeat; }
.esim .notes { border-radius: 16px; background: var(--s-note); padding: 10px 14px; display: flex; flex-direction: column; }
.esim .notes__h { display: flex; align-items: center; gap: 8px; font-weight: 600; padding-bottom: 6px; } .esim .notes__h span { flex: 1; } .esim .notes__h u { font-weight: 500; font-size: 12px; text-underline-offset: 3px; }
.esim .notes p { margin: 0; padding: 8px 0; border-top: 1px solid rgba(31,27,23,.1); font-size: 13.5px; line-height: 18px; }
.esim .back { align-self: flex-start; display: inline-flex !important; align-items: center; gap: 2px; height: 34px; padding: 0 14px 0 8px !important; border-radius: 17px; border: 1px solid var(--s-rule-strong) !important; background: var(--s-card) !important; font-weight: 600 !important; font-size: 13px !important; }
.esim .steps { display: flex; gap: 6px; } .esim .steps i { width: 22px; height: 4px; border-radius: 2px; background: var(--s-paper-3); } .esim .steps i.on { background: var(--s-ink); }
.esim .step { font: 500 16px/24px var(--s-ui); margin: 0; }
.esim .src { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--s-ink-2); padding: 8px 10px; border-radius: 10px; background: var(--s-paper); }
.esim .toast { position: absolute; left: 8px; right: 8px; top: 6px; z-index: 6; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 6px 6px 6px 14px; border-radius: 23px; background: var(--s-card); box-shadow: 0 0 0 1px var(--s-rule-strong), 0 10px 24px -10px rgba(31,27,23,.4); font-weight: 600; font-size: 13px; animation: esim-drop .45s cubic-bezier(.2,.9,.3,1.2); }
.esim .toast span { flex: 1; }
@keyframes esim-drop { from { transform: translateY(-64px); } to { transform: none; } }
.esim .scrim { position: absolute; inset: 0; z-index: 4; background: rgba(31,27,23,.36); animation: esim-fade .2s; }
.esim .sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; background: var(--s-card); border-radius: 20px 20px 0 0; padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 -8px 30px rgba(31,27,23,.18); animation: esim-rise .32s cubic-bezier(.2,.8,.2,1); }
.esim .sheet::before { content: ""; align-self: center; width: 36px; height: 4px; border-radius: 2px; background: var(--s-paper-3); }
.esim .sheet h4 { margin: 0; font: 500 21px/26px var(--s-serif); }
.esim .sheet label { display: block; font: 600 12px/16px var(--s-ui); margin-bottom: 5px; }
.esim .inp { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 9px 12px; border: 1px solid var(--s-rule-strong); border-radius: 12px; background: var(--s-card); font-size: 14px; line-height: 19px; }
.esim .chk { display: flex !important; align-items: center; gap: 10px; min-height: 36px; font-size: 13.5px !important; }
.esim .chk i { width: 20px; height: 20px; border-radius: 6px; border: 1.7px solid var(--s-ink-2); display: grid; place-items: center; } .esim .chk[aria-pressed="true"] i { background: var(--s-ink); border-color: var(--s-ink); } .esim .chk[aria-pressed="true"] i::after { content: ""; width: 10px; height: 6px; border: solid #fff; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px,-1px); }
.esim .acts { display: flex; gap: 8px; }
.esim .menu { position: absolute; right: 10px; bottom: 8px; z-index: 5; width: 210px; background: var(--s-card); border-radius: 16px; padding: 6px; box-shadow: 0 0 0 1px var(--s-rule), 0 16px 36px -12px rgba(31,27,23,.45); animation: esim-rise .22s cubic-bezier(.2,.8,.2,1); }
.esim .menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 10px; font-weight: 600; } .esim .menu button:hover { background: var(--s-paper); } .esim .menu button[disabled] { color: var(--s-ink-3); cursor: default; }
@keyframes esim-rise { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes esim-fade { from { opacity: 0; } to { opacity: 1; } }
.esim .tix { border: 1px solid var(--s-rule); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; }
.esim .tix__ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; background: var(--s-accent-soft); color: var(--s-accent); display: grid; place-items: center; }
.esim .tix__t { font-weight: 600; line-height: 19px; } .esim .tix__m { font-size: 12px; color: var(--s-ink-2); }
.esim .tix__f { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; border-top: 1px dashed var(--s-rule-strong); margin-top: 6px; padding-top: 8px; font-size: 12px; color: var(--s-ink-2); } .esim .tix__f b { color: var(--s-ink); }
.esim .calm { display: grid; justify-items: center; gap: 4px; padding: 6px 0 2px; } .esim .calm img { width: 54px; height: 54px; }
.esim .seg { display: inline-grid; grid-auto-flow: column; height: 34px; padding: 3px; border-radius: 17px; background: var(--s-paper-2); font: 600 12px/1 var(--s-ui); color: var(--s-ink-2); }
.esim .seg button, .esim .seg span { display: grid; place-items: center; padding: 0 12px; border-radius: 14px; } .esim .seg [aria-pressed="true"], .esim .seg [aria-current] { background: var(--s-card); color: var(--s-ink); box-shadow: 0 0 0 1px var(--s-rule-strong); }
.esim .hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* Console */
.esim__win.web { background: var(--s-web); display: grid; grid-template-columns: 148px minmax(0, 1fr); font-family: var(--s-ui); }
.esim .web__rail { background: #fff; border-right: 1px solid #E3E4E2; padding: 16px 8px; display: flex; flex-direction: column; gap: 2px; }
.esim .web__logo { display: flex; align-items: center; gap: 8px; padding: 0 8px 4px; font: 700 21px/1 "Source Serif 4", var(--s-serif); letter-spacing: -.055em; } .esim .web__logo img { width: 26px; height: 26px; } .esim .web__logo i { color: #C75C3A; font-style: normal; }
.esim .web__org { padding: 10px 8px 6px; font-weight: 600; font-size: 12.5px; }
.esim .web__sec { padding: 10px 8px 4px; font: 600 10px/14px var(--s-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s-ink-3); }
.esim .web__nav { display: flex !important; align-items: center; gap: 10px; min-height: 38px; padding: 0 8px !important; border-radius: 10px; font-weight: 500 !important; width: 100%; }
.esim .web__nav span { flex: 1; } .esim .web__nav em { font-style: normal; min-width: 20px; padding: 1px 6px; border-radius: 6px; background: #EEEFED; font: 600 11px/16px var(--s-ui); text-align: center; transition: background .3s, color .3s; } .esim .web__nav em.bump { background: var(--s-accent); color: #fff; }
.esim .web__nav[aria-current="true"] { background: var(--s-accent-soft); font-weight: 700 !important; box-shadow: inset 3px 0 0 var(--s-accent); }
.esim .web__nav.quiet { color: var(--s-ink-2); cursor: default; }
.esim .web__who { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid #E3E4E2; font-size: 12px; line-height: 15px; } .esim .web__who b { display: block; font-size: 12.5px; }
.esim .web__main { position: relative; overflow: auto; padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.esim .web__main > * { flex: none; }
.esim .web h3 { margin: 0; font: 500 22px/28px var(--s-ui); letter-spacing: -.01em; } .esim .web h3 b { font-weight: 700; }
.esim .web__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.esim .wcard { background: #fff; border-radius: 18px; box-shadow: 0 0 0 1px #E3E4E2; }
.esim .herd { position: relative; height: 150px; padding: 12px 16px; overflow: hidden; }
.esim .herd__ph { position: absolute; top: 12px; font: 500 11px/14px var(--s-ui); color: var(--s-ink-2); padding-left: 6px; border-left: 1px solid #C9CBC8; white-space: nowrap; } .esim .herd__ph b { color: var(--s-ink); font-weight: 600; margin-right: 4px; }
.esim .herd__base { position: absolute; left: 16px; right: 16px; bottom: 26px; height: 1px; background: #D5D7D4; }
.esim .herd__red { position: absolute; bottom: 25px; height: 2px; background: var(--s-danger); transition: left .6s, width .6s; }
.esim .herd__dot { position: absolute; bottom: 22px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--s-danger); transition: transform .4s, opacity .4s; } .esim .herd__dot.gone { transform: scale(0); opacity: 0; }
.esim .herd__now { position: absolute; bottom: 22px; top: 46px; width: 1.5px; background: var(--s-ink); } .esim .herd__now b { position: absolute; top: -18px; left: 50%; transform: translateX(-50%); font: 600 11px/14px var(--s-ui); white-space: nowrap; }
.esim .herd__you { position: absolute; bottom: 27px; width: 44px; height: 36px; } .esim .herd__you.nod { animation: esim-nod .7s ease-in-out 2; transform-origin: 50% 100%; }
@keyframes esim-nod { 50% { transform: rotate(-9deg) translateY(-3px); } }
.esim .herd__n { position: absolute; bottom: 34px; font-size: 13px; color: var(--s-ink-2); white-space: nowrap; } .esim .herd__n b { color: var(--s-ink); }
.esim .tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.esim .tile { padding: 12px 14px; display: grid; gap: 2px; transition: opacity .45s, transform .45s; } .esim .tile.out { opacity: 0; transform: scale(.96); }
.esim .tile b { font-size: 14px; } .esim .tile .late { font-size: 12.5px; } .esim .tile span { font-size: 12.5px; color: var(--s-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esim .foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--s-ink-2); } .esim .foot b { color: var(--s-ink); }
.esim .tbl { padding: 6px 8px; } .esim .tbl__h, .esim .tbl__r { display: grid !important; grid-template-columns: minmax(0, 1fr) 62px 86px 50px; align-items: center; padding: 0 10px !important; width: 100%; }
.esim .tbl__h { min-height: 30px; font-size: 11.5px; color: var(--s-ink-2); } .esim .tbl__h span, .esim .tbl__r span { text-align: right; } .esim .tbl__h span:first-child, .esim .tbl__r span:first-child { text-align: left; }
.esim .tbl__r { min-height: 40px; border-top: 1px solid #ECEDEB !important; font-size: 13.5px; border-radius: 0; } .esim .tbl__r b { font-weight: 700; } .esim .tbl__r[aria-pressed="true"] { background: #FAF1E9; border-radius: 10px; font-weight: 600; }
.esim .tbl__r.is-new { animation: esim-flash 1.6s ease-out; } @keyframes esim-flash { 0% { background: var(--s-accent-soft); } 100% { background: transparent; } }
.esim .dtl { padding: 14px 16px; display: grid; gap: 10px; } .esim .dtl h5 { margin: 0; font: 600 15px/20px var(--s-ui); }
.esim .dtl__t { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding-top: 10px; border-top: 1px solid #ECEDEB; font-size: 13.5px; line-height: 18px; } .esim .dtl__t small { grid-column: 1; font-size: 12px; color: var(--s-ink-2); } .esim .dtl__t .btn { grid-row: 1 / span 2; grid-column: 2; }
.esim .urg { display: inline-block; padding: 0 7px; margin-right: 6px; border-radius: 8px; background: var(--s-accent-soft); color: var(--s-accent); font: 600 11px/18px var(--s-ui); }
.esim .pop { position: absolute; z-index: 5; right: 20px; top: 62px; width: min(300px, calc(100% - 40px)); padding: 14px; display: grid; gap: 12px; box-shadow: 0 0 0 1px #DADBD8, 0 24px 48px -18px rgba(31,27,23,.45); animation: esim-rise .22s cubic-bezier(.2,.8,.2,1); }
.esim .pop h5 { margin: 0; font: 600 15px/20px var(--s-ui); } .esim .pop label { display: block; font: 600 12px/16px var(--s-ui); margin-bottom: 5px; }
.esim .opt { display: flex !important; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px !important; width: 100%; border-radius: 10px; border: 1px solid #E3E4E2 !important; font-size: 13.5px !important; margin-top: 6px; } .esim .opt[aria-pressed="true"] { border-color: var(--s-ink) !important; box-shadow: 0 0 0 1px var(--s-ink); font-weight: 600 !important; }
.esim .sent { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; animation: esim-rise .3s; } .esim .sent b { font-weight: 600; }
.esim__note { font-size: 12px; color: var(--sim-label, var(--s-ink-2)); }
@media (prefers-reduced-motion: reduce) { .esim *, .esim *::before { animation: none !important; transition: none !important; } }

.esim .tbl__foot { padding: 8px 10px 4px; font-size: 11.5px; color: var(--s-ink-2); }
.esim .tbl__r.is-bump span:last-child { animation: esim-flash 1.6s ease-out; border-radius: 6px; }

/* ================= Two chairs ================= */
/* The sim has no box of its own: its goals, its two windows and its earned line are placed by the page's pair grid,
   so the Companion sits on the day side, the Console on the dusk side, and the seam runs between them. */
.esim, .esim__stage { display: contents; }
.esim__pane { container: pane / inline-size; gap: 14px; align-content: start; }
.esim__win { border-radius: 20px; height: var(--sim-h, 580px); box-shadow: 0 0 0 1px rgba(31,27,23,.12), 0 30px 50px -34px rgba(20,18,30,.6); }
.esim__cap { align-items: center; gap: 10px; font: 500 17px/22px var(--s-ui); letter-spacing: 0; text-transform: none; color: var(--sim-label, var(--s-ink-2)); }
.esim__cap b { opacity: 1; font-weight: 600; color: var(--sim-label-strong, var(--s-ink)); }
.esim__cap > svg.g { width: 20px; height: 20px; color: var(--sim-label-strong, var(--s-ink)); }
.esim__cap small { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 14px/1 var(--s-ui); color: var(--sim-label, var(--s-ink-2)); }
.esim__cap small svg.g { width: 15px; height: 15px; }

/* goals: one bar on the seam; an icon each, a check when done */
.esim__goals { position: relative; z-index: 3; display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 6px; border-radius: 30px; background: var(--s-card); box-shadow: 0 0 0 1px rgba(31,27,23,.08), 0 18px 30px -20px rgba(20,18,30,.55); font-size: 15px; }
.esim .esim__goal { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 6px; border: 0; border-radius: 22px; background: none; color: var(--s-ink); font: 600 15px/1 var(--s-ui); white-space: nowrap; box-shadow: none; }
.esim__goal i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--s-rule-strong); font-style: normal; color: var(--s-ink-2); }
.esim__goal i svg.g { width: 16px; height: 16px; }
.esim .esim__goal.is-next { background: var(--s-accent-soft); }
.esim__goal.is-next i { border-color: var(--s-accent); background: var(--s-accent); color: #fff; }
.esim .esim__goal.is-done { color: var(--s-ink-3); background: none; border: 0; }
.esim__goal.is-done i { background: var(--s-ink); border-color: var(--s-ink); color: #fff; } .esim__goal.is-done i svg.g { stroke-width: 2.6; }
.esim__dash { flex: none; width: 14px; height: 1.5px; border-radius: 1px; background: var(--s-rule-strong); }
.esim .esim__reset { display: grid; place-items: center; width: 44px; height: 44px; min-height: 0; padding: 0; margin-left: 4px; border-radius: 50%; color: var(--s-ink-2) !important; text-decoration: none; }
.esim .esim__reset:hover { background: var(--s-paper-2); } .esim__reset svg.g { width: 18px; height: 18px; }

/* the earned line: when all three are done, the goals fold to their checks and the bar says so */
.esim__won { display: none; align-items: center; gap: 16px; padding: 0 2px 0 12px; }
.esim__won b { font: 500 25px/1.1 var(--s-serif); letter-spacing: -.01em; color: var(--s-ink); white-space: nowrap; }
.esim__won .cta { min-height: 44px; padding: 0 22px; border-radius: 22px; font-size: 16px; }
.esim.is-done .esim__won { display: inline-flex; animation: esim-fade .5s; }
.esim.won-wait .esim__won .cta { visibility: hidden; }
.esim.is-done .esim__goal { padding: 0 2px; } .esim.is-done .esim__goal span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.esim.is-done .esim__dash { display: none; }

/* the practice software is the backdrop: quieter, so Elefo reads first (audit 13) */
.esim .pms { right: var(--app-w, 400px); filter: grayscale(1); opacity: .36; } .esim .app { width: var(--app-w, 400px); }
.esim .pms { font-size: 12px; } .esim .pms__grid .tm { font-size: 11.5px; }
/* Console home: the now label clears the phase labels, Elefo clears the line (audit 06) */
.esim .herd { height: 158px; } .esim .herd__now { top: 60px; } .esim .herd__now b { top: -20px; } .esim .herd__you { margin-left: 8px; } .esim .herd__n { margin-left: 8px; }
.esim .tile span { white-space: normal; overflow: visible; }
.esim .tbl--3 .tbl__h, .esim .tbl--3 .tbl__r { grid-template-columns: minmax(0, 1fr) 62px 56px; }
/* a toast never covers the page title (audit 11) */
.esim .app__card.has-toast .app__page { padding-top: 66px; }
.esim .tix__f .av { width: 24px; height: 24px; }
.esim .web__main { padding: 22px 22px 18px; }
.esim .hometix h5 { display: flex; align-items: baseline; gap: 8px; } .esim .hometix h5 .meta { font-weight: 400; }
/* the ticket card keeps its full width inside the page column (audit 01) */
.esim .tix { width: 100%; align-self: stretch; } .esim .tix > span { min-width: 0; }
/* New task is a card in the page, above the table, never over it (audit 12) */
.esim .pop { position: static; width: auto; padding: 16px; gap: 12px; box-shadow: 0 0 0 1px var(--s-accent); }
.esim .pop .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* the changed item answers with a short ring when a dot lands on it */
.esim .is-ring, .is-ring { animation: chairs-ring 1.5s ease-out; } .esim .toast.is-ring { animation: chairs-ring 1.5s ease-out; }
@keyframes chairs-ring { 0%, 55% { outline: 2.5px solid var(--ring, #B0521F); outline-offset: 3px; } 100% { outline: 2.5px solid transparent; outline-offset: 3px; } }

/* a narrow window (a phone, or a small split): the Companion alone; the Console with its rail along the top */
@container pane (max-width: 560px) {
  .esim .pms { display: none; } .esim .app { width: 100%; border-left: 0; }
  .esim__win.web { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .esim .web__rail { flex-direction: row; align-items: center; gap: 2px; padding: 8px; border-right: 0; border-bottom: 1px solid #E3E4E2; overflow: auto; scrollbar-width: none; }
  .esim .web__org, .esim .web__sec, .esim .web__who, .esim .web__nav.quiet, .esim .web__logo span { display: none !important; }
  .esim .web__logo { padding: 0 6px 0 4px; }
  .esim .web__nav { width: auto; padding: 0 12px !important; min-height: 38px; } .esim .web__nav span { flex: none; }
  .esim .web__nav[aria-current="true"] { box-shadow: none; }
  .esim .web__main { padding: 18px 16px; }
  .esim .web h3 { font-size: 20px; line-height: 26px; }
  .esim .tbl__h, .esim .tbl__r { grid-template-columns: minmax(0, 1fr) 54px 84px 44px; padding: 0 6px !important; }
  .esim .tbl--3 .tbl__h, .esim .tbl--3 .tbl__r { grid-template-columns: minmax(0, 1fr) 54px 50px; }
  .esim .herd__ph b { display: none; }
}
@container pane (max-width: 420px) { .esim .web__logo { display: none; } .esim .pop .two { grid-template-columns: 1fr; } }

