/* public/redesign.css
 * StockPal 3.0 redesign: palette, app frame (menu, section tabs, header, tickers,
 * pinned side panel), Today screen and phone layout.
 * Loaded after the page's own styles; every existing screen keeps its logic.
 */

/* ===================== PALETTES ===================== */
:root, [data-theme="premium-dark"] {
  --bg: #0B0F17; --bg2: #121826; --bg3: #19212F; --bg4: #212B3C;
  --border: #243044; --border2: #2F3C53;
  --text: #F1F4F9; --text2: #C5CDD8; --muted: #929CAD; --muted2: #AEB7C5;
  --green: #4ACB8A; --green-dim: #36A872; --green-glow: rgba(74, 203, 138, 0.14);
  --red: #F8776D; --red-dim: #D95B52; --red-glow: rgba(248, 119, 109, 0.14);
  --blue: #7D9BFF; --blue-dim: #5F7FE8; --blue-glow: rgba(125, 155, 255, 0.16);
  --gold: #F5B840; --gold-dim: #D99A22; --gold-glow: rgba(245, 184, 64, 0.14);
  --purple: #B39CFF; --purple-glow: rgba(179, 156, 255, 0.14); --cyan: #5CC8E0;
  --grad-primary: linear-gradient(135deg, #7D9BFF 0%, #7D9BFF 100%);
  --grad-gold: linear-gradient(135deg, #F5B840 0%, #F5B840 100%);
  --grad-purple: linear-gradient(135deg, #B39CFF 0%, #B39CFF 100%);
  --grad-header: linear-gradient(180deg, #121826 0%, #121826 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --glow-green: none; --glow-blue: none;
  --accent-soft: #1A2547; --on-accent: #0B0F17;
  --up-soft: #10291D; --down-soft: #2F1618; --hold-soft: #2C2310;
}
[data-theme="light"] {
  --bg: #F5F6F8; --bg2: #FFFFFF; --bg3: #F0F2F5; --bg4: #E6E9EE;
  --border: #E2E6EC; --border2: #CDD3DC;
  --text: #0F172A; --text2: #344054; --muted: #5B6576; --muted2: #475467;
  --green: #067647; --green-dim: #0B8A55; --green-glow: rgba(6, 118, 71, 0.10);
  --red: #B42318; --red-dim: #D92D20; --red-glow: rgba(180, 35, 24, 0.08);
  --blue: #2D5BE3; --blue-dim: #4A73EA; --blue-glow: rgba(45, 91, 227, 0.10);
  --gold: #A15C07; --gold-dim: #C27A12; --gold-glow: rgba(161, 92, 7, 0.10);
  --purple: #6941C6; --purple-glow: rgba(105, 65, 198, 0.10); --cyan: #0E7490;
  --grad-primary: linear-gradient(135deg, #2D5BE3 0%, #2D5BE3 100%);
  --grad-gold: linear-gradient(135deg, #A15C07 0%, #A15C07 100%);
  --grad-purple: linear-gradient(135deg, #6941C6 0%, #6941C6 100%);
  --grad-header: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --glow-green: none; --glow-blue: none;
  --accent-soft: #EBF0FE; --on-accent: #FFFFFF;
  --up-soft: #E6F4EC; --down-soft: #FCEBEA; --hold-soft: #FDF1DD;
}
[data-theme="oled"] {
  --bg: #000000; --bg2: #0A0A0C; --bg3: #141418; --bg4: #1C1C22;
  --border: #26262C; --border2: #34343C;
  --text: #F5F5F7; --text2: #D0D0D6; --muted: #9A9AA3; --muted2: #B4B4BC;
  --green: #4ACB8A; --green-dim: #36A872; --green-glow: rgba(74, 203, 138, 0.14);
  --red: #F8776D; --red-dim: #D95B52; --red-glow: rgba(248, 119, 109, 0.14);
  --blue: #7D9BFF; --blue-dim: #5F7FE8; --blue-glow: rgba(125, 155, 255, 0.16);
  --gold: #F5B840; --gold-dim: #D99A22; --gold-glow: rgba(245, 184, 64, 0.14);
  --purple: #B39CFF; --purple-glow: rgba(179, 156, 255, 0.14); --cyan: #5CC8E0;
  --grad-primary: linear-gradient(135deg, #7D9BFF 0%, #7D9BFF 100%);
  --grad-gold: linear-gradient(135deg, #F5B840 0%, #F5B840 100%);
  --grad-purple: linear-gradient(135deg, #B39CFF 0%, #B39CFF 100%);
  --grad-header: linear-gradient(180deg, #0A0A0C 0%, #0A0A0C 100%);
  --glow-green: none; --glow-blue: none;
  --accent-soft: #151C33; --on-accent: #000000;
  --up-soft: #0D2318; --down-soft: #2A1214; --hold-soft: #261E0E;
}

body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ===================== DESKTOP FRAME ===================== */
#topNav { display: none !important; }
@media (min-width: 769px) {
  body { display: grid !important; grid-template-columns: 248px minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
  #spSide { grid-column: 1; grid-row: 1 / -1; }
  body > .header { grid-column: 2; grid-row: 1; }
  body > .ticker-container { grid-column: 2; grid-row: 2; }
  #spSectionBar { grid-column: 2; grid-row: 3; }
  body > .main { grid-column: 2; grid-row: 4; min-height: 0; }
  body > .global-footer { grid-column: 2; grid-row: 5; }
  .mobile-bottom-nav { display: none !important; }
}

/* ===================== SIDE MENU ===================== */
#spSide {
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  padding: 18px 14px; box-sizing: border-box; height: 100vh; height: 100dvh; overflow-y: auto;
  scrollbar-width: thin;
}
.sp-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; text-align: left; }
.sp-brand b { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.sp-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.sp-mark svg { stroke: var(--on-accent); }
.sp-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg3); color: var(--muted); }
.sp-search input { border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--text); outline: none; flex: 1; min-width: 0; }
.sp-nav { display: flex; flex-direction: column; gap: 2px; }
.sp-sec { border-radius: 12px; }
.sp-sec.on { background: var(--accent-soft); }
.sp-sec-row { display: flex; align-items: center; }
.sp-sec-btn { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 8px 0 12px; border: 0; background: none; border-radius: 10px; color: var(--text2); font: inherit; font-weight: 600; cursor: pointer; text-align: left; }
.sp-sec-btn:hover { background: var(--bg3); color: var(--text); }
.sp-sec.on .sp-sec-btn { color: var(--blue); font-weight: 700; }
.sp-sec.on .sp-sec-btn:hover { background: transparent; }
.sp-chev { width: 32px; height: 32px; border: 0; background: none; border-radius: 8px; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.sp-chev:hover { background: var(--bg3); color: var(--text); }
.sp-chev svg { transition: transform 0.15s; }
.sp-sec.open .sp-chev svg { transform: rotate(180deg); }
.sp-subs { display: none; flex-direction: column; gap: 1px; padding: 2px 6px 8px 40px; }
.sp-sec.open .sp-subs { display: flex; }
.sp-sub { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 10px; border: 0; background: none; border-radius: 8px; color: var(--text2); font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left; }
.sp-sub::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--border2); flex: none; }
.sp-sub:hover { background: var(--bg3); color: var(--text); }
.sp-sec.on .sp-sub:hover { background: rgba(127, 127, 127, 0.08); }
.sp-sub.on { color: var(--blue); font-weight: 600; }
.sp-sub.on::before { background: var(--blue); }
.sp-badge { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; background: var(--red); color: #FFFFFF; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sp-foot { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--border); }
.sp-market { margin-top: 10px; padding: 12px; border-radius: 10px; background: var(--bg3); font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.sp-market b { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.sp-market b i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.sp-market b i.open { background: var(--green); }
.sp-market span { color: var(--muted); }
.sp-only-m { display: none !important; }

/* ===================== SECTION TITLE + TABS ===================== */
#spSectionBar { background: var(--bg); padding: 18px 28px 0; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#spSectionBar h1 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.sp-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: -1px; }
.sp-tabs::-webkit-scrollbar { display: none; }
.sp-tab { flex: none; border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13.5px; color: var(--muted); min-height: 42px; padding: 0 14px; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.sp-tab:hover { color: var(--text); }
.sp-tab.on { color: var(--blue); border-bottom-color: var(--blue); }

/* ===================== HEADER ===================== */
.header { height: 56px !important; background: var(--bg2) !important; backdrop-filter: none !important; border-bottom: 1px solid var(--border) !important; padding: 0 20px !important; gap: 12px; }
.header::after { display: none !important; }
.header .logo { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--text); font-weight: 700 !important; font-size: 16px !important; }
.header .logo-icon { font-size: 0 !important; width: 28px !important; height: 28px !important; border-radius: 8px !important; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M7 18l5-5 4 3 5-7' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px no-repeat !important; box-shadow: none !important; }
#topRatesDisplay { margin-left: 0 !important; background: var(--bg3) !important; border: 1px solid var(--border) !important; color: var(--text2) !important; font-family: 'Inter', sans-serif !important; font-size: 12px !important; padding: 6px 12px !important; }
.header .model-badge, .header .db-badge, .header .api-badge, .header .status { display: none !important; }
#userEmailBadge { font-size: 12px !important; background: var(--bg3) !important; border-color: var(--border) !important; padding: 5px 12px !important; }
#btnSignOut { font-size: 12px !important; padding: 6px 12px !important; border-radius: 8px !important; border-color: var(--border) !important; }
.sp-hbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); color: var(--text2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.sp-hbtn:hover { background: var(--bg3); color: var(--text); }
@media (min-width: 769px) { .header .logo { display: none !important; } }

/* ===================== RUNNING TICKERS ===================== */
.ticker-container { background: var(--bg2) !important; border-bottom: 1px solid var(--border) !important; }
.ticker-bar, .ticker-bar.portfolio-ticker { height: 32px !important; background: var(--bg2) !important; border-bottom: 1px solid var(--border) !important; font-family: 'Inter', sans-serif !important; font-size: 12.5px !important; }
.ticker-bar:last-child { border-bottom: 0 !important; }
.ticker-title { background: var(--bg2) !important; color: var(--muted) !important; width: 96px; justify-content: flex-start; font-size: 11px !important; font-weight: 700 !important; letter-spacing: 0.06em !important; padding: 0 14px !important; }
.ticker-scroll { gap: 32px !important; animation-duration: 45s !important; }
.ticker-item span { font-weight: 600 !important; }
.ticker-item span:nth-child(2) { font-family: 'JetBrains Mono', monospace; color: var(--text) !important; }
.ticker-item span:first-child { font-size: 7px !important; }
@media (prefers-reduced-motion: reduce) { .ticker-scroll { animation: none !important; } .ticker-wrap { overflow-x: auto !important; } }

/* ===================== PINNED SIDE PANEL ===================== */
#rightSidebar { width: 288px !important; background: var(--bg2) !important; }
#rightSidebar > div:first-child { background: var(--bg2) !important; border-bottom: 1px solid var(--border) !important; padding: 8px 12px !important; justify-content: space-between !important; align-items: center; }
#rightSidebar > div:first-child::after { content: 'Pinned'; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); order: -1; }
#rightSidebar .pin-btn { font-size: 0 !important; width: 30px; height: 30px; border-radius: 8px; background-color: var(--muted) !important; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5M9 3h6l-1 6 3 3v2H7v-2l3-3z'/%3E%3C/svg%3E") center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 17v5M9 3h6l-1 6 3 3v2H7v-2l3-3z'/%3E%3C/svg%3E") center / 16px no-repeat; }
#rightSidebar .pin-btn:hover { background-color: var(--text) !important; }
#rightSidebar .sidebar-section { padding: 16px !important; border-bottom: 1px solid var(--border) !important; }
#rightSidebar .sidebar-title { font-size: 13px !important; font-weight: 700 !important; color: var(--text) !important; text-transform: none !important; letter-spacing: 0 !important; margin-bottom: 10px; }
#rightSidebar .sidebar-title .hint { background: var(--accent-soft) !important; border-color: transparent !important; color: var(--blue) !important; font-size: 11px !important; padding: 4px 8px !important; border-radius: 8px !important; }
#portfolioSummary { background: var(--bg3) !important; border: 0 !important; border-radius: 12px !important; padding: 12px !important; font-size: 13px !important; }
#totalPortVal { font-size: 15px; }
#rightSidebar .watchlist-item { border-radius: 10px !important; border: 1px solid transparent !important; background: transparent !important; padding: 8px !important; }
#rightSidebar .watchlist-item:hover { background: var(--bg3) !important; }
#rightSidebar .watchlist-item .ticker { font-family: 'JetBrains Mono', monospace; font-weight: 600; }
.watchlist-add { display: flex; gap: 6px; }
.watchlist-add input { height: 36px !important; border-radius: 10px !important; border: 1px solid var(--border) !important; background: var(--bg3) !important; color: var(--text) !important; font-size: 13px !important; padding: 0 10px !important; flex: 1; min-width: 0; }
.watchlist-add button { width: 36px !important; height: 36px !important; border-radius: 10px !important; border: 0 !important; background: var(--blue) !important; color: var(--on-accent) !important; font-size: 18px !important; font-weight: 600; cursor: pointer; }

/* ===================== SCREENS: SHARED POLISH ===================== */
.main > [id$="Area"] { background: var(--bg) !important; }
.dashboard-header h1, .dashboard-header h2 { letter-spacing: -0.01em; }
.main button[style*="linear-gradient"] { background: var(--blue) !important; color: var(--on-accent) !important; border-color: var(--blue) !important; box-shadow: none !important; }
.card { box-shadow: none; }
.input-area { background: var(--bg2) !important; border-top: 1px solid var(--border) !important; }
.send-btn { background: var(--blue) !important; box-shadow: none !important; }
.send-btn svg { fill: var(--on-accent) !important; }
.global-footer { background: var(--bg2) !important; }

/* Settings: data connections card (badges moved here from the header) */
.sp-conn { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.sp-conn #statusText { font-size: 12px !important; }
.sp-conn .model-badge, .sp-conn .db-badge, .sp-conn .api-badge, .sp-conn .status { display: inline-flex !important; align-items: center; gap: 6px; font-size: 12px !important; padding: 5px 10px !important; border-radius: 999px !important; }

/* ===================== TODAY ===================== */
#todayArea { flex: 1; display: none; flex-direction: column; overflow-y: auto; min-height: 0; padding: 24px 28px 40px; background: var(--bg); -webkit-overflow-scrolling: touch; }
.sp-today { width: 100%; max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.sp-greet small { display: block; color: var(--muted); font-size: 13px; }
.sp-greet h2 { margin: 2px 0 0; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.sp-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sp-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-span2 { grid-column: span 2; }
.sp-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 20px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.sp-card h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sp-card h3 a, .sp-link { font-size: 13px; font-weight: 600; color: var(--blue); text-decoration: none; cursor: pointer; background: none; border: 0; font-family: inherit; padding: 0; }
.sp-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sp-big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.sp-row-stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }
.sp-row-stats span { color: var(--muted); }
.sp-up { color: var(--green) !important; }
.sp-down { color: var(--red) !important; }
.sp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.sp-btn:hover { background: var(--bg3); }
.sp-btn.primary { background: var(--blue); border-color: var(--blue); color: var(--on-accent); }
.sp-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sp-tile { padding: 10px 12px; border-radius: 10px; background: var(--bg3); }
.sp-tile small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.sp-tile b { font-size: 15px; font-weight: 600; }
.sp-list { display: flex; flex-direction: column; }
.sp-li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--border); background: none; border-left: 0; border-right: 0; border-top: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.sp-li:last-child { border-bottom: 0; }
.sp-li:hover { background: var(--bg3); border-radius: 8px; }
.sp-li .t { font-family: 'JetBrains Mono', monospace; font-weight: 600; width: 64px; flex: none; color: var(--text); }
.sp-li .n { flex: 1; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-li .v { text-align: right; font-weight: 600; color: var(--text); }
.sp-li .c { width: 72px; text-align: right; font-weight: 600; flex: none; }
.sp-empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.sp-ask { display: flex; gap: 8px; }
.sp-ask input { flex: 1; min-width: 0; height: 46px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg2); color: var(--text); font: inherit; padding: 0 14px; outline: none; }
.sp-ask input:focus { border-color: var(--blue); }
.sp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.sp-chip { min-height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg2); color: var(--text2); font: inherit; font-size: 13px; cursor: pointer; }
.sp-chip:hover { border-color: var(--blue); color: var(--text); }
.sp-spark { width: 100%; height: 90px; display: block; }

/* ===================== PHONE ===================== */
#spBackdrop { display: none; }
@media (max-width: 768px) {
  #spSide { position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 86vw); z-index: 1200; transform: translateX(-104%); transition: transform 0.22s ease; box-shadow: none; visibility: hidden; height: 100%; padding-top: calc(18px + env(safe-area-inset-top, 0px)); }
  #rightSidebar { width: 280px !important; }
  #spSide.sp-open { transform: translateX(0); box-shadow: var(--shadow-lg); visibility: visible; }
  #spBackdrop.sp-open { display: block; position: fixed; inset: 0; background: rgba(10, 14, 22, 0.5); z-index: 1150; }
  .sp-only-m { display: flex !important; }
  .header { padding: 0 12px !important; }
  #topRatesDisplay { display: none !important; }
  #spSectionBar { padding: 10px 12px 0; gap: 4px; }
  #spSectionBar h1 { font-size: 18px; }
  .sp-tab { min-height: 40px; padding: 0 10px; font-size: 13px; }
  .ticker-title { width: 84px; padding: 0 10px !important; }
  .global-footer { display: none !important; }
  #todayArea { padding: 14px 12px 24px; }
  .sp-grid, .sp-grid.two { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .sp-span2 { grid-column: auto; }
  .sp-card { padding: 16px; }
  .sp-big { font-size: 30px; }
  .sp-li .n { display: none; }
  .sp-ask input, #spSearch, #tickerInput { font-size: 16px; } /* iPhone zooms in on smaller text boxes */
  .mobile-bottom-nav { background: var(--bg2) !important; border-top: 1px solid var(--border) !important; }
  .mob-nav-btn { color: var(--muted) !important; font-weight: 600 !important; min-height: 52px; background: none !important; }
  .mob-nav-btn.active { color: var(--blue) !important; }
  .mob-nav-btn .mob-icon { display: flex; height: 22px; align-items: center; justify-content: center; }
  .main button, .main select, .main input[type="text"], .main input[type="search"], .main input:not([type]) { min-height: 40px; }
}
