/* X4 — personal tiles (mock 'dash-tiles'), the daily digest (mock 'dash-digest'), the mail screen (mock 'gap-mail') and the digest's
   switch on 'My account'. Body text 14 px, buttons ≥ 36 px (44 px on a phone), colours from the shell's tokens. */

/* the dashboard header's Customise button */
.kd-custom svg{flex:none}

/* Customise my dashboard: the indicator and its state, a drag handle on each row, the note, the two buttons */
.kd-mine-t{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--s4,#dfe7e7);border-radius:10px;overflow:hidden;font-size:14px}
.kd-mine-t th{font-size:12px;font-weight:600;color:var(--t3,#557070);text-align:start;padding:8px 14px;background:var(--s2,#f6f9f9);border-bottom:1px solid var(--s4,#dfe7e7)}
.kd-mine-t td{padding:8px 14px;border-bottom:1px solid var(--s4,#dfe7e7);vertical-align:middle}
.kd-mine-t tr:last-child td{border-bottom:0}
.kd-mine-st{width:90px;text-align:center !important}
.kd-mine-name{display:inline-flex;align-items:center;gap:10px}
.kd-mine-code{color:var(--t2,#3d5250)}
.kd-mine-code .kd-code{display:inline;padding:0;background:none;color:inherit;font:inherit}   /* the code beside its name, as drawn: "(K01)" */
.kd-grip{display:inline-flex;align-items:center;justify-content:center;min-width:36px;min-height:36px;padding:0;border:0;border-radius:8px;background:transparent;color:var(--ac,#0f766e);font-size:18px;line-height:1;cursor:grab}
.kd-grip:hover,.kd-grip:focus-visible{background:var(--kd-te-bg,#e6f4f2)}
.kd-mine-drag{opacity:.55}
.kd-mine-drag td{background:var(--kd-te-bg,#e6f4f2)}
.kd-switch{position:relative;display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:36px;cursor:pointer}
.kd-switch input{position:absolute;opacity:0;width:1px;height:1px}
.kd-switch span{position:relative;display:inline-block;width:40px;height:22px;border-radius:999px;background:var(--s4,#cfd9d9);transition:background .15s}
.kd-switch span::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.2);transition:inset-inline-start .15s}
.kd-switch input:checked+span{background:var(--ac,#0f766e)}
.kd-switch input:checked+span::after{inset-inline-start:21px}
.kd-switch input:focus-visible+span{outline:2px solid var(--ac,#0f766e);outline-offset:2px}
.kd-mine-note{margin:12px 0 0;padding:10px 14px;border:1px solid var(--kd-te-bg,#cdebe7);border-radius:10px;background:var(--kd-te-bg,#eef8f6);color:var(--t2,#3d5250);font-size:13px}

/* the daily digest: four tiles, the lines to follow up and today's, the note, the main button */
.dg-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.dg-tile{display:flex;flex-direction:column;gap:4px;min-height:96px;padding:12px 14px;border:1px solid var(--s4,#dfe7e7);border-top:4px solid var(--dg-c,#0f766e);border-radius:12px;background:var(--s,#fff);color:var(--t,#0b1a1a);text-decoration:none}
.dg-tile:hover{border-color:var(--dg-c,#0f766e)}
.dg-c-gn{--dg-c:#15803d}.dg-c-am{--dg-c:#c2570c}.dg-c-rd{--dg-c:#b91c1c}.dg-c-mu{--dg-c:#0f766e}
.dg-k{font-size:13px;color:var(--t3,#557070)}
.dg-v{font:800 24px/1.15 "DM Mono",ui-monospace,Consolas,monospace;font-variant-numeric:tabular-nums}
.dg-s{font-size:12px;color:var(--t3,#557070)}
.dg-code{font-size:12px;color:var(--bl,#0b5d91)}
.dg-lines{list-style:none;margin:12px 0 0;padding:0;border:1px solid var(--s4,#dfe7e7);border-radius:12px;overflow:hidden}
.dg-lines li+li{border-top:1px solid var(--s4,#dfe7e7)}
.dg-lines a{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 14px;color:var(--t,#0b1a1a);text-decoration:none;font-size:14px}
.dg-lines a:hover{background:var(--s2,#f6f9f9)}
.dg-tag{flex:none;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:700}
.dg-tag-follow{background:#fdecd9;color:#c2570c}
.dg-tag-today{background:#e0effa;color:#0b5d91}
.dg-none{margin:12px 0 0;color:var(--t3,#557070);font-size:14px}
.dg-note{margin:12px 0 0;color:var(--t3,#557070);font-size:13px}
.dg-page{max-width:720px}

/* Notifications and mail: the SMTP form beside what is sent automatically */
.ml-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}
.ml-h{margin:0 0 12px;font-size:16px;font-weight:700}
.ml-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 14px}
.ml-form .md-row input,.ml-form .md-row select{min-height:40px}
.ml-acts{grid-column:1;display:flex !important;flex-direction:row !important;gap:8px;justify-content:flex-end}
.ml-acts .btn{width:auto;min-height:40px}
.ml-state{margin:12px 0 0;padding:10px 14px;border-radius:10px;font-size:13px}
.ml-state-on{background:#dcf5e5;color:#15803d}
.ml-state-off{background:#fde2e2;color:#b91c1c}
.ml-last{margin:8px 0 0;color:var(--t3,#557070);font-size:12px}
.ml-t{width:100%;border-collapse:separate;border-spacing:0;border:1px solid var(--s4,#dfe7e7);border-radius:10px;overflow:hidden;font-size:14px}
.ml-t th{font-size:12px;font-weight:600;color:var(--t3,#557070);text-align:start;padding:10px 12px;background:var(--s2,#f6f9f9);border-bottom:1px solid var(--s4,#dfe7e7)}
.ml-t td{padding:12px;border-bottom:1px solid var(--s4,#dfe7e7);vertical-align:middle;white-space:normal}
.ml-auto{overflow-x:auto}
.ml-t tr:last-child td{border-bottom:0}
.ml-chip{display:inline-flex;align-items:center;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:700;white-space:nowrap}
.ml-on{background:#dcf5e5;color:#15803d}
.ml-off{background:#fde2e2;color:#b91c1c}

/* My account: the digest's on/off switch */
.ess-card .kd-switch{min-width:44px;min-height:44px}
.dg-me{display:flex;align-items:center;justify-content:space-between;gap:12px}

@media (max-width:760px){
  .ml-grid,.ml-form{grid-template-columns:1fr}
  .kd-grip{min-width:44px;min-height:44px}
  .dg-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* the digest's viewer window is drawn at M (the window standard gives a viewer L by default) */
#digest-win .win{max-width:640px}
