/* Plain layout: words instead of icons, and one column of simple rows instead of tile grids.
   Loaded last, so it settles the earlier layers' tile and dashboard rules. */

/* Figures read as rows in one card: the name on the left, the amount on the right, the note underneath. */
.cards,.recap-big{display:block!important;border:1px solid var(--line);border-radius:var(--radius);background:var(--card);padding:2px 18px;margin-bottom:18px;box-shadow:none}
.cards>.card,.recap-big>.card,
#overview .cards>.card:first-child,#practice .cards>.card:first-child,#homeHero:not(:empty)+.cards>.card:first-child{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:16px;align-items:baseline;grid-column:auto!important;margin:0;padding:13px 0;border:0;border-bottom:1px solid var(--row-line);border-radius:0;background:none;box-shadow:none;color:var(--ink)}
.cards>.card:last-child,.recap-big>.card:last-child{border-bottom:0}
.cards>.card::after,.recap-big>.card::after{display:none!important}
.cards>.card .label,.recap-big>.card .label,
#overview .cards>.card:first-child .label,#practice .cards>.card:first-child .label{grid-column:1;color:var(--muted)!important;text-transform:none;letter-spacing:0;font-size:.92rem;font-weight:600}
.cards>.card .value,.recap-big>.card .value,
#overview .cards>.card:first-child .value,#practice .cards>.card:first-child .value{grid-column:2;grid-row:1;margin:0;text-align:right;font-size:1.15rem;color:var(--ink)}
.cards>.card .detail,.cards>.card .hint,.recap-big>.card .detail,
#overview .cards>.card:first-child .detail,#practice .cards>.card:first-child .detail,#overview .cards>.card:first-child .hint,#practice .cards>.card:first-child .hint{grid-column:1/-1;margin-top:2px;color:var(--muted)}
.cards>.card .detail:empty,.recap-big>.card .detail:empty{display:none}
#overview .cards>.card:first-child a,#practice .cards>.card:first-child a{color:var(--blue)}
#overview .cards>.card:first-child .help,#practice .cards>.card:first-child .help{background:var(--chip-bg);color:var(--chip-ink)}

/* One column on every screen size: panels stack instead of sitting side by side in uneven boxes. */
/* On wide screens the column is a comfortable reading width; the room keeps the full width its picture needs. */
.view:not(#room),.shell>#investTop,.shell>#accountSwitcher{max-width:800px;margin-inline:auto}
.grid,.money-grid,.today-grid,.deal-grid,.next-up-cards{grid-template-columns:minmax(0,1fr)!important}
.deal-grid{gap:10px}
#welcome{grid-template-columns:minmax(0,1fr)!important}

/* Safe to spend: the days until payday are a line under the number, not a side box. */
.home-hero{grid-template-columns:minmax(0,1fr)!important;justify-items:stretch;text-align:left}
.home-hero .payday-note{grid-row:2!important;grid-column:1!important;display:flex;align-items:baseline;gap:8px;border-left:0!important;border-top:1px solid var(--hero-line);padding:14px 0 0!important;margin:0}
.home-hero .payday-note strong{display:inline;font:600 1.15rem/1.2 'DM Sans',sans-serif;margin:0;color:inherit}
.home-hero .payday-note p{margin:0;font-size:.95rem}
.home-hero .payday-note .payday-track{display:none}

/* Badges are a list: earned ones in full, the rest faded, each with its state in words. */
.badges{display:block!important}
.badges .badge{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;align-items:baseline;text-align:left;margin:0;padding:11px 0;border:0;border-bottom:1px solid var(--row-line);border-radius:0;background:none;box-shadow:none}
.badges .badge:last-child{border-bottom:0}
.badges .badge strong{font-size:.95rem}
.badges .badge span{grid-column:1;font-size:.84rem}
.badges .badge .badge-state{grid-column:2;grid-row:1;font-style:normal;font-size:.8rem;font-weight:700;color:var(--muted)}
.badges .badge.earned .badge-state{color:var(--mint)}

/* Rows that used to start with an icon line up with their text. */
.next-card{padding-left:0}
.alert-panel,.nudge-panel{display:block}
.cloud-status,.restore-found{display:block}

/* Room arrows are plain chevrons. */
.room-pan span{font-size:1.6rem;line-height:1;font-weight:600}

/* The + button says Add. */
.fab{font:700 .95rem/1 'DM Sans',sans-serif;letter-spacing:.01em}

/* Phones: the name on top, then its buttons in words on one row. The theme setting lives in Settings, Appearance. */
@media (width < 600px){
  .shell>.top,.in-room .top{flex-wrap:wrap!important;row-gap:4px}
  .shell>.top>div:first-child,.in-room .top>div:first-child{flex:1 1 100%}
  .top .header-tools{flex:1 1 100%!important;align-items:stretch!important}
  .header-buttons{justify-content:flex-start;gap:6px!important}
  .header-buttons .theme-toggle{width:auto!important;padding:0 12px!important;font-size:.8rem!important}
  .header-buttons #themeToggle{display:none!important}
  .header-buttons #openSettings{margin-left:auto}
}
/* Faded rows fell below the 4.5:1 contrast the app aims for. Their words already say what they are (Coming up, Not yet, the date), so they are no longer faded. */
.money-row-item.upcoming,.badge:not(.earned),.cal-day.past{opacity:1}
.cal-day.past .cal-num,.ns-day.future{color:var(--muted)}.ns-day.future{opacity:1}
/* On tablets and laptops the header, tabs and messages share the page's 800px column, so their edges line up with the page under them. The room is wider, so on the room page they keep the full width. */
:root:is([data-layout=laptop],[data-layout=tablet]) body:not(.in-room) :is(.shell>.top,.shell>.nav,.shell>.notices){max-width:800px;margin-inline:auto}
/* Add money: date, payment, repeats and note fold under one summary line that shows what will be saved. */
.more-fields{margin-top:6px;border-top:1px solid var(--row-line)}.more-fields>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;cursor:pointer;list-style:none;font-weight:600}
.more-fields>summary::-webkit-details-marker{display:none}.more-fields>summary::after{content:'Change';color:var(--gold-text);text-decoration:underline;font-weight:700}.more-fields[open]>summary::after{content:'Done'}
.more-fields>summary span{font-weight:500;color:var(--muted)}
/* Getting around (1.14.0): the room bar, Room, Search and Add, unless Settings, Appearance picks the five tabs. Only that bar's own buttons show. */
[data-nav="room"] .nav [data-view="overview"],[data-nav="room"] .nav [data-view="money"],[data-nav="room"] .nav [data-view="school"],[data-nav="room"] .nav [data-view="accounts"],[data-nav="room"] .nav [data-view="goals"],:root:not([data-nav="room"]) .nav #tab-room,:root:not([data-nav="room"]) .nav #tab-search{display:none!important}
/* On the room bar, Add is as tall as Room and Search, so showing it on the room page never makes the bar taller and the room smaller. */
@media(width < 600px){[data-nav="room"] .nav:has(#fab),[data-nav="room"].booting .nav{grid-template-columns:repeat(2,minmax(0,1fr)) 52px}[data-nav="room"] .nav .fab{height:44px}[data-nav="room"].booting .nav{grid-auto-rows:minmax(44px,auto)}}
/* Labels stay on: each tag names the page its object opens and sits just under the artwork, inside the object's own target. */
.room-object .room-tag,.room-object[data-room-group] .room-tag{top:auto;bottom:2px;max-width:calc(100% - 2px);padding:2px 5px;white-space:normal;font:600 var(--tag-size,11px)/1.2 'DM Sans',sans-serif;border-radius:4px;opacity:1;pointer-events:auto}.room-tag strong{font:inherit}
/* Wallet, Calendar and Search: plain pages of rows, opened from the room or the bar. */
#walletBody>*+*,#calendarBody>*+*{margin-top:18px}.wallet-guide{margin:12px 0 0}
/* With the room bar, Search is in the bar, so Today drops its own box; on a phone the bar's Add replaces the room's Add spending. */
[data-nav="room"] #overview .today-search{display:none}:root[data-nav="room"][data-layout="phone"] .in-room #fab{display:grid}:root[data-nav="room"][data-layout="phone"] .room-spent{display:none}
/* On a phone the bar’s Add is the only Add: Money’s own Add and the Safe to spend card’s Add spending open the same form (1.15.1). */
:root[data-layout="phone"] #money .hero [data-money-add="expense"],:root[data-layout="phone"] .hero-actions [data-money-add="expense"]{display:none}
.room-more{font-size:.75rem;text-align:left}.room-more[data-room-more="right"]{text-align:right}
.page-search{margin-top:4px}.page-search input{font-size:16px;padding-left:14px}.search-places{margin:12px 0 0;box-shadow:none}.search-places button span{white-space:normal}.search-tools{margin:12px 0 0}
