.quick-mode .economics-section,
.quick-mode .form-section:has(#vin),
.quick-mode #dealCustomFields,
.quick-mode label:has(#attachmentUrl) { display:none; }
.quick-mode #grossAmount { pointer-events:auto; }

.tabbar.suite-nav {
  grid-template-columns:repeat(6,minmax(0,1fr));
  overflow:hidden;
  width:calc(100% - 20px);
  max-width:880px;
  bottom:max(8px,env(safe-area-inset-bottom));
}
.suite-nav .tab {
  min-width:0;
  padding:7px 2px;
  overflow:hidden;
}
.suite-nav .tab span { font-size:18px; }
.suite-nav .tab b {
  width:100%;
  overflow:hidden;
  text-overflow:clip;
  white-space:nowrap;
  font-size:9px;
}
@media(max-width:390px) {
  .tabbar.suite-nav { width:calc(100% - 12px); gap:1px; padding:6px 3px; }
  .suite-nav .tab span { font-size:17px; }
  .suite-nav .tab b { font-size:8px; letter-spacing:-.15px; }
}

.ui-icon { display:block;flex:0 0 auto; }
.tile-print { display:inline-flex;align-items:center;gap:6px; }
.suite-nav .tab span { display:grid;place-items:center;min-height:22px; }
.theme-dark .deal-card {
  background:#181c23!important;
  border:1px solid #2b313b!important;
  box-shadow:0 8px 22px rgba(0,0,0,.20)!important;
}
.theme-dark .deal-card:hover { background:#1c2129!important;box-shadow:0 10px 26px rgba(0,0,0,.25)!important; }
.theme-dark .deal-avatar {
  background:#273342!important;
  color:#93b1d3!important;
  box-shadow:none!important;
}
.theme-dark .deal-card h3 { color:#eef1f6; }
.theme-dark .deal-card p,
.theme-dark .deal-money small { color:#929ba9; }
.theme-dark .deal-money b { color:#dce6f2; }
.theme-dark .deal-delete { background:#2c2226!important;color:#d98c94!important;box-shadow:none!important; }
.theme-dark .deal-delete:hover { background:#38272c!important; }

.deal-header-actions { display:flex;align-items:center;justify-content:flex-end;gap:7px; }
.deal-header-actions button {
  min-height:36px;
  padding:8px 13px;
  border-radius:11px;
  font-weight:800;
}
#saveDraft { background:rgba(0,122,255,.09); }
#saveDeal { background:#1677d2;color:#fff!important;box-shadow:0 5px 14px rgba(0,96,200,.23); }
.theme-dark #saveDraft { background:#272f3a!important; }
.theme-dark #saveDeal { background:#416f9f!important; }

button,
.deal-card,
.settings-row,
.month-display,
.search-box,
.date-picker-button,
.month-cell,
.date-cell,
.suite-row,
.photo-preview-wrap,
.status-control button {
  cursor:pointer;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  transition:transform .14s ease,background-color .2s ease,border-color .2s ease,box-shadow .2s ease,opacity .2s ease;
}
button:not(:disabled):active,
.deal-card:active,
.settings-row:active,
.month-display:active,
.date-picker-button:active,
.month-cell:active,
.date-cell:active,
.suite-row:has(button:active) {
  transform:scale(.975);
  opacity:.88;
}
button:focus-visible,
.deal-card:focus-visible,
.settings-row:focus-visible {
  outline:3px solid rgba(70,126,184,.28);
  outline-offset:2px;
}
button:disabled { cursor:default;opacity:.46; }
@media(hover:hover) {
  button:not(:disabled):hover,
  .deal-card:hover,
  .settings-row:hover,
  .month-display:hover { filter:brightness(.97);box-shadow:0 6px 18px rgba(25,40,70,.09); }
}
@media(max-width:390px) {
  .deal-header-actions { gap:4px; }
  .deal-header-actions button { padding:7px 9px;font-size:12px; }
}

/* Softer iOS dark palette: avoid luminous input and card surfaces. */
.theme-dark {
  --blue:#6e9fd8;
  --card:#171a21;
  --line:#30343e;
  --muted:#9ba3b1;
}
.theme-dark input,
.theme-dark textarea,
.theme-dark select,
.theme-dark .input-affix,
.theme-dark .date-picker-button,
.theme-dark .search-box,
.theme-dark .month-cell,
.theme-dark .date-cell {
  background:#20242c!important;
  border-color:#353a45!important;
  color:#e8eaf0!important;
  box-shadow:none!important;
}
.theme-dark input:focus,
.theme-dark textarea:focus,
.theme-dark select:focus {
  border-color:#536f91!important;
  box-shadow:0 0 0 3px rgba(92,126,168,.16)!important;
  outline:none;
}
.theme-dark input::placeholder,
.theme-dark textarea::placeholder { color:#707986!important; }
.theme-dark #dealSheet {
  background:#101319!important;
  color:#eef1f6;
}
.theme-dark #dealSheet .form-section {
  background:#181c23!important;
  border:1px solid #292f39;
  box-shadow:none!important;
}
.theme-dark #dealSheet label { color:#b8c0cc; }
.theme-dark #dealSheet input,
.theme-dark #dealSheet textarea,
.theme-dark #dealSheet .input-affix,
.theme-dark #dealSheet .date-picker-button {
  background:#20242b!important;
  border-color:#303640!important;
  color:#dce1e8!important;
  box-shadow:none!important;
}
.theme-dark #dealSheet input:focus,
.theme-dark #dealSheet textarea:focus,
.theme-dark #dealSheet .input-affix:focus-within {
  background:#232831!important;
  border-color:#4c6078!important;
  box-shadow:0 0 0 3px rgba(90,119,153,.12)!important;
}
.theme-dark #dealSheet .calculated,
.theme-dark #dealSheet .formula-note {
  background:#1b2425!important;
  border-color:#2b3a3b!important;
}
.theme-dark #dealSheet .calculated input { color:#9fbdaa!important; }
.theme-dark .calculated,
.theme-dark .formula-note,
.theme-dark .quick-banner,
.theme-dark .goal-card,
.theme-dark .analytics-card,
.theme-dark .settings-row,
.theme-dark .google-button,
.theme-dark .photo-settings,
.theme-dark .sync-settings,
.theme-dark .export-settings {
  background:#1b1f27!important;
  border-color:#303640!important;
  box-shadow:0 8px 24px rgba(0,0,0,.18)!important;
}
.theme-dark .calculated input { color:#8fc79d!important; }
.theme-dark .primary-button,
.theme-dark .add-tab,
.theme-dark #newDealButton { background:#416f9f!important;box-shadow:none!important; }
.theme-dark .secondary-button,
.theme-dark .suite-actions button,
.theme-dark .text-button { color:#86acd6!important; }
.theme-dark .ios-range { accent-color:#6685aa; }
.theme-dark .warning-chip { background:#40351f;color:#d8b66c; }
.theme-dark .paid-chip { background:#203a2a;color:#83bd91; }
.theme-dark .draft-chip { background:#222f42;color:#88a9d2; }

.designer-setting { display:grid;gap:9px; }
.designer-label { font-size:12px;font-weight:750;color:var(--muted);padding-left:2px; }
.ios-choice {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:5px;
  padding:5px;
  border:1px solid var(--line);
  border-radius:17px;
  background:#eceef3;
}
.ios-choice.lock-choice { grid-template-columns:repeat(5,1fr); }
.ios-choice button {
  border:0;
  min-width:0;
  min-height:48px;
  border-radius:12px;
  background:transparent;
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:7px 4px;
  transition:background .22s,box-shadow .22s,color .22s,transform .18s;
}
.ios-choice button i { font-style:normal;font-size:16px; }
.ios-choice button b { font-size:11px;white-space:nowrap; }
.ios-choice button.selected {
  background:#fff;
  color:#1769c2;
  box-shadow:0 3px 10px rgba(38,51,77,.13);
  transform:scale(1.015);
}
.theme-dark .ios-choice { background:#12151b;border-color:#303640; }
.theme-dark .ios-choice button { color:#8993a1; }
.theme-dark .ios-choice button.selected { background:#2b313b;color:#9bbbe0;box-shadow:0 4px 12px rgba(0,0,0,.24); }
@media(max-width:390px) {
  .ios-choice.lock-choice { gap:2px;padding:4px; }
  .ios-choice.lock-choice button { min-height:43px;padding:5px 1px; }
  .ios-choice.lock-choice button b { font-size:9px; }
}
