.esim-row-main { gap:14px; }
.esim-row-main .status-pill { margin-left:auto; white-space:nowrap; }
.esim-row-name { display:flex; flex-direction:column; align-items:flex-start; gap:5px; white-space:normal; min-width:0; }
.esim-row-name small { white-space:normal; }
.esim-at-a-glance { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0; padding:0 24px 20px; }
.esim-at-a-glance dt { font-size:12px; color:var(--muted); margin-bottom:6px; }
.esim-at-a-glance dd { margin:0; color:var(--ink); font-size:16px; font-weight:600; }
.esim-card-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:0 24px 20px; }
.esim-card-actions button { min-height:42px; padding:10px 14px; font-family:inherit; font-weight:500; font-size:13px; line-height:1.4; }
.esim-archive-action { margin-left:auto; color:var(--muted); }
.esim-list-toolbar { margin:0 0 18px; }
.switching-tutorial { margin-top:40px; scroll-margin-top:24px; }
.switching-guide-visual { width:100%; max-width:360px; justify-self:center; align-self:start; }
.switching-guide-visual svg { display:block; width:100%; height:auto; }
.esim-country { padding:20px 24px; margin:0 0 20px; border:1px solid var(--line); border-radius:18px; background:var(--paper); }
.esim-country-heading,.esim-sync-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.esim-country-heading > div { display:flex; flex-direction:column; gap:6px; }
.esim-country-heading small { font-size:11px; letter-spacing:.08em; color:var(--muted); }
.esim-country-heading strong { font-size:16px; color:var(--ink); }
.esim-country button { font:inherit; font-size:13px; }
.esim-country [data-country-controls] { padding:14px 0; }
.esim-country label { display:block; font-size:13px; margin-bottom:8px; }
.esim-country select { max-width:100%; width:300px; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:10px; padding:12px; font:inherit; font-size:16px; }
.esim-country-match { color:#14834a; background:#def8e9; border-radius:7px; padding:4px 8px; font-weight:600; }
.esim-sync-row { border-top:1px solid var(--line); margin-top:12px; padding-top:12px; }
.esim-list-tabs { display:inline-flex; gap:5px; padding:5px; border-radius:14px; background:var(--panel); }
.esim-list-tabs button { border:0; border-radius:10px; background:transparent; padding:11px 15px; color:var(--muted); font:inherit; font-size:13px; }
.esim-list-tabs button[aria-selected=true] { background:var(--inset); color:var(--ink); font-weight:600; }
.esim-list-tabs span { margin-left:5px; font-size:12px; }
.esim-list-toolbar p { margin:10px 0 0; }
.esim-row [data-plan-status="Plan started"],.esim-row [data-plan-status="Ready to use"] { background:#def8e9; color:#14834a; }
.esim-management-dialog { width:min(480px,calc(100vw - 32px)); box-sizing:border-box; padding:30px; border:1px solid var(--line); border-radius:20px; background:var(--paper); color:var(--ink); }
.esim-management-dialog h2 { padding-right:18px; }
.esim-management-dialog { max-height:calc(100dvh - 32px); overflow:auto; }
.esim-install-method { border:1px solid var(--line); border-radius:12px; padding:15px; margin:12px 0; }
.esim-install-method h3 { font-size:16px; margin:0 0 12px; }
.esim-install-method label { display:block; font-size:13px; margin-bottom:6px; }
.esim-install-method select { width:100%; padding:10px; font:inherit; font-size:16px; background:var(--paper); color:var(--ink); border:1px solid var(--line); border-radius:8px; }
.esim-install-method summary { cursor:pointer; font-size:14px; font-weight:600; }
.esim-install-method [data-direct-install] { margin-top:12px; }
.esim-install-method [hidden] { display:none!important; }
.esim-manual-values { margin:0; }
.esim-manual-values dt { font-size:12px; color:var(--muted); margin-top:12px; }
.esim-manual-values dd { margin:5px 0 0; overflow-wrap:anywhere; font-size:14px; user-select:text; }
.esim-dialog-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin-top:20px; }
.esim-qr { display:flex; flex-direction:column; align-items:center; gap:14px; margin:20px 0; }
.esim-qr img { background:white; padding:12px; border-radius:12px; }
.esim-install-link { display:flex; justify-content:center; text-decoration:none; }
@media(max-width:600px) {
  .esim-country { padding:16px 14px; }
  .esim-country-heading { align-items:flex-start; }
  .esim-country-heading strong { font-size:14px; }
  .esim-country-heading button { flex-shrink:0; padding:9px; }
  .esim-country [data-country-gps] { display:block; margin-top:12px; }
  .esim-row-main { display:grid; grid-template-columns:34px minmax(0,1fr); gap:10px; padding:18px 14px; }
  .esim-row-main .esim-row-visual { grid-column:1; grid-row:1; }
  .esim-row-main .esim-row-name { grid-column:2; grid-row:1; }
  .esim-row-main .status-pill { grid-column:2; grid-row:2; margin:0!important; justify-self:start; }
  .esim-at-a-glance { padding:0 14px 18px; gap:12px; }
  .esim-at-a-glance dd { font-size:14px; overflow-wrap:anywhere; }
  .esim-card-actions { padding:0 14px 18px; gap:8px; }
  .esim-card-actions .primary-button,.esim-card-actions .secondary-button { flex:1 1 auto; }
  .esim-management-dialog { padding:24px 20px; }
}
