/* Daily Life Doc, round 13 (zone F2): the Atlas tab of a client's page, as the page "Expert Plans" draws it ("Atlas":
   a card with the client's name and "Atlas · from the template …", the Fixed section, then sections of fields, each a
   name and its value with where it came from; a field of this client only on a soft yellow ground with "Only Kabir"
   and Save to template; Table fields as small tables; Edit's Type and Ask). js/atlas/*.js. */

.atl { padding: 16px 18px 18px; border-radius: 18px; background: var(--card); text-align: left; }
.ahd { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.ahd .wt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ahd .wt b { font-size: var(--t-m); font-weight: 600; }
.ahd .wt span { font-size: var(--t-xs); color: var(--ink3); }
.asec { margin-top: 10px; }
.ash { padding: 8px 0 4px; font-size: var(--t-xs); font-weight: 600; color: var(--ink2); }
.ash.ed { display: flex; align-items: center; gap: 6px; }
.ash.ed input { flex: 1; max-width: 260px; padding: 5px 9px; border: 0; border-radius: 8px; background: var(--field); font: inherit; color: var(--ink); }
.afr { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 10px; border-radius: 10px; }
.afr .an { padding-top: 1px; font-size: var(--t-sm); color: var(--ink2); }
.afr .av { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: var(--t-s); }
.afr .av small { flex-basis: 100%; font-size: var(--t-xs); color: var(--ink3); }
.afr .av small.aen { font-weight: 300; } /* a spoken answer's English line (from.en) */
.afr.tap .aval { cursor: pointer; border-radius: 6px; overflow-wrap: anywhere; }
.afr.tap .aval:hover { background: color-mix(in srgb, var(--app) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--app) 60%, transparent); }
.afr.editing .aval { flex: 1 1 100%; cursor: default; }
.afr.editing .aval:hover { background: none; box-shadow: none; }
.afr.own { background: color-mix(in srgb, var(--try-bg) 55%, transparent); }
.aown { padding: 1px 8px; border-radius: 7px; background: var(--try-bg); color: var(--try-d); font-size: var(--t-2xs); font-weight: 600; }
.plk.sm { padding: 2px 10px; font-size: var(--t-2xs); font-weight: 600; }
.nov { color: var(--ink3); }
.aiv { display: inline-block; margin-right: 6px; padding: 0 6px; border-radius: 6px; background: var(--care); color: var(--care-d); font-size: var(--t-2xs); font-weight: 600; line-height: 18px; vertical-align: 1px; }

/* Editing in place */
.ain { width: 100%; max-width: 360px; padding: 7px 10px; border: 0; border-radius: 10px; background: var(--field); font: inherit; color: var(--ink); outline: none; box-shadow: 0 0 0 2px var(--sage); }
textarea.ain { resize: vertical; }
.ascale { display: flex; flex-wrap: wrap; gap: 4px; }
.ascale button { width: 32px; height: 32px; border-radius: 8px; background: var(--field); font-weight: 600; font-size: var(--t-xs); }
.ascale button.on { background: var(--ink); color: var(--surface); }
.ayn { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.seg { display: inline-flex; gap: 4px; }
.seg button { min-width: 52px; padding: 5px 12px; border-radius: 999px; background: var(--field); font-weight: 600; font-size: var(--t-xs); }
.seg button.on { background: var(--ink); color: var(--surface); }
.afu { display: flex; flex-direction: column; gap: 6px; padding-left: 12px; border-left: 2px solid var(--cardline); }
.afu label { display: flex; flex-direction: column; gap: 3px; font-size: var(--t-xs); color: var(--ink2); }
.afu input { max-width: 360px; padding: 6px 9px; border: 0; border-radius: 8px; background: var(--field); font: inherit; color: var(--ink); }
.afu .pill { align-self: flex-start; }
.aph { display: flex; flex-wrap: wrap; gap: 6px; }
.aph img { display: block; width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }

/* A Table field */
.atb { width: 100%; max-width: 480px; border-collapse: collapse; font-size: var(--t-sm); }
.atb th { padding: 2px 10px 4px 0; border-bottom: 1px solid var(--cardline); text-align: left; font-size: var(--t-xs); font-weight: 600; color: var(--ink3); }
.atb td { padding: 4px 10px 4px 0; border-bottom: 1px solid var(--cardline); }
.atb tr:last-child td { border-bottom: 0; }
.atb.ed input { width: 100%; min-width: 70px; padding: 4px 7px; border: 0; border-radius: 7px; background: var(--field); font: inherit; color: var(--ink); }
.rx { width: 26px; height: 26px; border-radius: 50%; color: var(--ink3); font-size: var(--t-xs); }
.rx:hover { background: var(--soft); color: var(--ink); }
.afr .acts, .afoot .acts { margin-top: 6px; }
.afoot { margin-top: 10px; }

/* Edit: Type and Ask */
.afr.edt { grid-template-columns: 190px minmax(0, 1fr) auto; }
.atools { display: inline-flex; align-items: center; gap: 4px; }
.atools select { padding: 3px 8px; border: 0; border-radius: 999px; background: var(--soft); font: 500 var(--t-2xs) var(--font); color: var(--ink2); }
.alab { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: var(--t-xs); font-weight: 600; color: var(--ink2); }
.alab .ain { max-width: none; box-shadow: none; }
.zsearch { max-width: none; margin-bottom: 8px; box-shadow: none; }
.zlist { display: flex; flex-direction: column; }

@media (max-width: 880px) {
  .atl { padding: 12px; }
  .afr { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px 6px; }
  .afr .an { font-size: var(--t-xs); color: var(--ink3); }
  .afr.edt { grid-template-columns: minmax(0, 1fr); }
  .atools { margin-top: 4px; }
}
.ahd .wt span { white-space: normal; overflow: visible; }
.afans { flex-basis: 100%; display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding: 8px 12px; border-radius: 10px; background: var(--field); font-size: var(--t-sm);
  animation: dd-rise var(--m-add) var(--ease-out) both; }
.afans b { font-weight: 500; color: var(--ink2); }

/* Round 14a (zone Z5, A4 and A1): the state beside a value, small and tinted as the page "Rounds 14 to 18" draws it
   (Known green, Confirmed the Atlas teal, To ask yellow); a List's items one under the other. */
.ast { padding: 1px 8px; border-radius: 999px; font-size: var(--t-2xs); font-weight: 500; line-height: 18px; white-space: nowrap; }
.ast.s-known { background: var(--good-bg); color: var(--good-d); }
.ast.s-confirmed { background: var(--atlas-bg); color: var(--atlas-d); }
.ast.s-ask { background: var(--try-bg); color: var(--try-d); }
.alist { display: inline-flex; flex-direction: column; gap: 2px; }
/* Round 15 (zone D, D2): "Delete client" at the foot of the Atlas tab (js/atlas/atlas-delete.js), quiet red words
   under a thin line; in its sheet the typed name and Delete, red once the name matches. */
.adel { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--cardline); }
.adel-b { min-height: 36px; padding: 0 2px; background: none; color: var(--bad); font-size: var(--t-s); font-weight: 500; cursor: pointer; }
.adel-b:hover { text-decoration: underline; }
.adel-in { max-width: none; margin-top: 4px; box-shadow: none; }
.adel-in:focus { box-shadow: 0 0 0 2px var(--sage); }
.sh-actions .pill.adel-go:not([disabled]) { background: var(--bad); color: #fff; }
.sh-actions .pill.adel-go[disabled] { background: var(--field); color: var(--ink3); cursor: default; }
/* Round 20 (zone A): the fixed field Channel (js/atlas/atlas-channel.js): the pick Text | Telegram (Add client's
   ".ac-seg"), Telegram's state with Start link on the next line, and the link box (Add client's ".ac-link"); a
   refusal of the phone ("This number is with another expert.") under the field being typed. */
.ach .av { flex-direction: column; align-items: flex-start; gap: 8px; }
.ach-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--t-sm); color: var(--ink2); }
.ach-link { width: 100%; max-width: 420px; animation: dd-rise var(--m-add) var(--ease-out) both; }
.afr .av small.aerr { color: var(--bad); }
