/* ============================================================
   Coindaily - Crypto CGT / EOFY estimator
   ============================================================ */
.tx-hero { padding: 26px 0 6px; }
.tx-hero .kicker { display: block; margin-bottom: 6px; }
.tx-hero h1 { font-size: 27px; letter-spacing: -0.01em; color: var(--tx-hi); margin: 0 0 8px; }
.tx-hero .sub { font-size: 13.5px; color: var(--tx-mid); max-width: 660px; line-height: 1.55; }

/* EOFY banner */
.tx-eofy { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--hairline); border-left: 2px solid var(--amber); border-radius: var(--r-lg); padding: 10px 14px; margin: 16px 0 0; font-size: 13px; color: var(--tx); }
.tx-eofy b { color: var(--tx-hi); }
.tx-eofy-ic { color: var(--amber); font-size: 14px; }

.tx-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin: 18px 0 14px; align-items: start; }
@media (max-width: 940px) { .tx-grid { grid-template-columns: 1fr; } }

.tx-panel { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 16px 18px 15px; }
.tx-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.tx-panel-head h2 { font-size: 13px; font-weight: 600; color: var(--tx-hi); padding-left: 9px; border-left: 2px solid var(--amber-dim); }
.tx-panel-acts { display: flex; gap: 8px; }
.tx-mini { font-family: var(--mono); font-size: 11px; color: var(--tx-mid); background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 7px; padding: 5px 10px; cursor: pointer; transition: .12s; }
.tx-mini:hover { color: var(--tx-hi); border-color: rgba(255,255,255,.2); }

/* disposal rows */
.tx-hint { font-size: 11.5px; color: var(--tx-dim); line-height: 1.5; margin: 0 0 12px; }
.tx-hint b { color: var(--tx-mid); }
.tx-cell[data-label]::before { display: none; }   /* labels only surface on mobile */
.tx-rows-head, .tx-row { display: grid; grid-template-columns: 1.7fr 0.8fr 0.95fr 1.15fr 0.95fr 1.15fr 28px; gap: 8px; align-items: center; }
.tx-rows-head { padding: 0 2px 7px; }
.tx-rows-head span { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--tx-dim); }
.tx-rows-head span.r { text-align: right; }
.tx-row { padding: 5px 0; }
.tx-cell { min-width: 0; position: relative; }
.tx-in { width: 100%; background: var(--bg-2, #0c1016); border: 1px solid var(--hairline); border-radius: 8px; padding: 8px 9px; color: var(--tx-hi); font-size: 12.5px; font-family: var(--sans); outline: none; transition: border-color .12s; }
.tx-in:focus { border-color: var(--amber); }
.tx-in.num { font-family: var(--mono); }
input.tx-in[type=date] { font-family: var(--mono); font-size: 11.5px; color-scheme: dark; }
.tx-pick { position: relative; display: flex; align-items: center; }
.tx-pick img { position: absolute; left: 8px; width: 17px; height: 17px; border-radius: 50%; z-index: 1; pointer-events: none; }
.tx-pick img + .tx-asset { padding-left: 31px; }
.tx-opts { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; background: #0d1117; border: 1px solid var(--hairline); border-radius: 10px; max-height: 240px; overflow-y: auto; z-index: 40; box-shadow: 0 18px 40px rgba(0,0,0,.5); padding: 5px; }
.tx-opt { display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px; background: none; border: 0; border-radius: 7px; cursor: pointer; text-align: left; color: var(--tx); }
.tx-opt:hover { background: rgba(255,255,255,.05); }
.tx-opt img { width: 19px; height: 19px; border-radius: 50%; }
.tx-opt .s { font-weight: 600; color: var(--tx-hi); font-size: 12.5px; min-width: 48px; }
.tx-opt .n { color: var(--tx-mid); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-opt-empty { padding: 12px; text-align: center; color: var(--tx-dim); font-size: 12.5px; }
.tx-del { width: 26px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: none; color: var(--tx-dim); cursor: pointer; font-size: 12px; }
.tx-del:hover { color: #ad6670; border-color: rgba(173,102,112,.5); }
.tx-add-row { margin-top: 8px; }
.tx-add { width: 100%; padding: 9px; border: 1px dashed var(--hairline); border-radius: 9px; background: none; color: var(--tx-mid); font-size: 12.5px; cursor: pointer; transition: .12s; }
.tx-add:hover { color: var(--amber); border-color: rgba(201,154,75,.5); }

/* mobile: each disposal becomes a labelled card */
@media (max-width: 620px) {
  .tx-rows-head { display: none; }
  #tx-rows { display: flex; flex-direction: column; gap: 10px; }
  .tx-row { grid-template-columns: 1fr 1fr; gap: 10px 10px; position: relative; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 12px 12px 13px; }
  .tx-cell.asset { grid-column: 1 / -1; padding-right: 30px; }   /* room for the ✕ */
  .tx-cell[data-label]::before { display: block; content: attr(data-label); font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 5px; }
  .tx-del-cell { position: absolute; top: 9px; right: 9px; width: auto; }
  .tx-del-cell::before { display: none; }
  .tx-del { width: 24px; height: 24px; }
  .tx-in { padding: 9px 10px; font-size: 13px; }
  input.tx-in[type=date] { font-size: 12.5px; }
  /* result table: drop the per-side inputs (they're in the cards above), keep the outcome */
  .tx-table th, .tx-table td { padding: 9px 7px; }
  .tx-table th:nth-child(2), .tx-table td:nth-child(2),
  .tx-table th:nth-child(3), .tx-table td:nth-child(3),
  .tx-table th:nth-child(4), .tx-table td:nth-child(4) { display: none; }
  .tx-head-v { font-size: 30px; }
}

/* settings panel */
.tx-set { display: flex; flex-direction: column; gap: 13px; }
.tx-set-field label { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 6px; }
.tx-set-field label small { text-transform: none; letter-spacing: 0; color: var(--tx-faint); }
.tx-set-field .tx-in { font-family: var(--mono); }
.tx-row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tx-fy { display: inline-flex; gap: 2px; background: var(--bg-2); border: 1px solid var(--hairline); border-radius: 8px; padding: 2px; }
.tx-fy button { font-family: var(--mono); font-size: 11px; color: var(--tx-mid); background: none; border: 0; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.tx-fy button.active { background: rgba(201,154,75,.16); color: var(--amber); }
.tx-check { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--tx); cursor: pointer; }
.tx-check input { accent-color: var(--amber); width: 15px; height: 15px; }

/* result */
.tx-result { margin-bottom: 14px; }
.tx-empty { color: var(--tx-dim); font-size: 13px; padding: 28px 4px; text-align: center; }
.tx-head { display: grid; grid-template-columns: auto; gap: 4px; padding: 4px 2px 16px; border-bottom: 1px solid var(--hairline); margin-bottom: 14px; }
.tx-head-l { font-family: var(--mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--tx-dim); }
.tx-head-v { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; color: var(--tx-hi); line-height: 1.05; }
.tx-head.loss .tx-head-v { color: #5f9277; }
.tx-head-s { font-size: 12.5px; color: var(--tx-mid); max-width: 620px; }
.tx-head-s b { color: var(--tx); }

.tx-cells { display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; margin-bottom: 16px; }
.tx-cellout { background: var(--bg-2); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 9px 11px; min-width: 0; }
.tx-cellout .k { display: block; font-family: var(--mono); font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--tx-dim); margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tx-cellout .v { font-family: var(--mono); font-size: 14.5px; color: var(--tx-hi); }
.tx-cellout .v.up { color: #5f9277; } .tx-cellout .v.down { color: #ad6670; }
@media (max-width: 720px) { .tx-cells { grid-template-columns: repeat(2, 1fr); } }

/* split bar */
.tx-split { margin-bottom: 16px; }
.tx-split-head { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--tx-mid); margin-bottom: 8px; }
.tx-split-head .muted { color: var(--tx-dim); font-family: var(--mono); font-size: 10px; }
#tx-split-svg { width: 100%; height: 24px; display: block; border-radius: 4px; overflow: hidden; }
.tx-seg { cursor: crosshair; }
.tx-split-leg { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.tx-leg { display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--tx-mid); }
.tx-leg i { width: 9px; height: 9px; border-radius: 2px; }
.tx-leg b { color: var(--tx); font-family: var(--mono); }

/* breakdown table */
.tx-table { width: 100%; border-collapse: collapse; }
.tx-table th { font-family: var(--mono); font-size: 9.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--tx-dim); font-weight: 500; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--hairline); }
.tx-table th.r, .tx-table td.r { text-align: right; }
.tx-table td { padding: 10px; border-bottom: 1px solid var(--hairline-2, rgba(255,255,255,.04)); font-size: 12.5px; color: var(--tx); }
.tx-table tr:last-child td { border-bottom: 0; }
.tx-table td.num { font-family: var(--mono); }
.tx-table td.strong { color: var(--tx-hi); font-weight: 500; }
.tx-table .up { color: #5f9277; } .tx-table .down { color: #ad6670; }
.tx-table .muted { color: var(--tx-dim); }
.tx-yes { color: var(--amber); font-family: var(--mono); font-size: 11.5px; }
.tx-asset-c { display: inline-flex; align-items: center; gap: 8px; }
.tx-asset-c img { width: 19px; height: 19px; border-radius: 50%; }
.tx-asset-c b { color: var(--tx-hi); }

/* 12-month nudge */
.tx-nudge { display: flex; gap: 10px; align-items: flex-start; background: rgba(201,154,75,.06); border: 1px solid rgba(201,154,75,.22); border-radius: var(--r-lg); padding: 10px 13px; margin-top: 10px; font-size: 12.5px; color: var(--tx); line-height: 1.5; }
.tx-nudge .ic { color: var(--amber); font-size: 14px; line-height: 1.2; }
.tx-nudge b { color: var(--tx-hi); }

/* explainer + disclaimer */
.tx-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 720px) { .tx-notes { grid-template-columns: 1fr; } }
.tx-note { background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 15px 18px; }
.tx-note h3 { font-size: 12.5px; font-weight: 600; color: var(--tx-hi); margin-bottom: 9px; }
.tx-note ul { margin: 0; padding-left: 16px; }
.tx-note li { font-size: 12.5px; color: var(--tx-mid); line-height: 1.65; margin-bottom: 5px; }
.tx-note a { color: var(--amber); text-decoration: none; }
.tx-note a:hover { color: var(--amber-hi); }
.tx-disclaimer { display: flex; gap: 11px; align-items: flex-start; background: var(--panel); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 36px; font-size: 12px; color: var(--tx-mid); line-height: 1.6; }
.tx-disclaimer svg { flex: none; margin-top: 2px; color: var(--tx-dim); }
.tx-disclaimer b { color: var(--tx); }
