:root { color-scheme: light; --bg: #eef7f4; --surface: #ffffff; --surface-soft: #f4faf8; --text: #153b3a; --muted: #66817e; --muted-light: #8aa29f; --line: #d3e7e2; --primary: #0b6b68; --primary-soft: #e5f4f0; --accent: #f0a34b; --accent-soft: #fff9f1; --danger: #b44b39; font-family: system-ui, -apple-system, "Noto Sans Thai", sans-serif; color: var(--text); background: var(--bg); }
:root[data-theme="dark"] { color-scheme: dark; --bg: #131313; --surface: #1d1d1d; --surface-soft: #252525; --text: #ffffff; --muted: #a7a7a7; --muted-light: #777777; --line: transparent; --primary: #ffffff; --primary-soft: #292929; --accent: #ffffff; --accent-soft: #242424; --danger: #ffffff; }
* { box-sizing: border-box; } body { margin: 0; min-width: 320px; }
.splash-screen { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: #131313; color: #ffffff; opacity: 1; transition: opacity .35s ease, visibility .35s ease; } .splash-screen.splash-hidden { visibility: hidden; opacity: 0; pointer-events: none; } .splash-mark { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: #ffffff; color: #131313; font-size: 25px; font-weight: 900; } .splash-screen p { margin: 5px 0 0; font-size: 17px; font-weight: 700; letter-spacing: .01em; } .splash-screen small { color: #a7a7a7; font-size: 11px; letter-spacing: .04em; }
.hidden { display: none !important; } .beta-gate { display: grid; place-items: center; min-height: 100vh; padding: 22px; background: radial-gradient(circle at top, #d8f0ec, #eef7f4 55%); } .gate-card { width: min(100%, 450px); padding: 28px 24px; border: 1px solid #d3e7e2; border-radius: 24px; background: white; box-shadow: 0 18px 50px #0b6b6818; } .gate-card h1 { margin: 0 0 12px; font-size: 27px; } .gate-card > p:not(.eyebrow) { color: #66817e; line-height: 1.65; }
.shell { max-width: 720px; min-height: 100vh; margin: auto; padding: 24px 18px 96px; }
.dashboard-section { margin-top: 26px; } .status-section { margin-top: 28px; } .management-section { margin-top: 34px; padding-top: 24px; border-top: 1px solid #d3e7e2; }
.status-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; overflow-x: auto; } .status-item { min-width: 78px; padding: 12px 8px; border: 1px solid #d3e7e2; border-radius: 16px; background: white; text-align: center; } .status-icon { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 10px; background: #e5f4f0; color: #0b6b68; } .status-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; } .status-label, .status-item strong { display: block; } .status-label { color: #66817e; font-size: 11px; } .status-item strong { margin-top: 4px; font-size: 17px; }
.fish-grid { display: grid; gap: 12px; margin-top: 14px; } .fish-card { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 14px; border: 1px solid #d3e7e2; border-radius: 20px; background: white; } .pond-visual { display: grid; place-items: center; min-height: 100%; border-radius: 14px; background: linear-gradient(145deg, #bce7e0, #5faea5); font-size: 30px; } .fish-card-body { min-width: 0; } .fish-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 8px; } .fish-card h3 { margin: 0 0 3px; font-size: 18px; } .fish-card p { margin: 0; color: #66817e; font-size: 12px; } .tank-status { padding: 4px 7px; border-radius: 999px; background: #e5f4f0; color: #0b6b68; font-size: 10px; white-space: nowrap; } .fish-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 13px; } .fish-facts span { color: #315c58; font-size: 12px; } .fish-facts small, .last-feeding span { display: block; color: #8aa29f; font-size: 10px; } .last-feeding { display: flex; justify-content: space-between; gap: 8px; margin-top: 13px; padding-top: 10px; border-top: 1px solid #edf4f2; font-size: 11px; } .last-feeding strong { color: #315c58; font-size: 11px; text-align: right; } .fish-card-actions { display: flex; gap: 6px; margin-top: 11px; }
.progress-card { margin-top: 14px; padding: 18px; border: 1px solid #d3e7e2; border-radius: 18px; background: white; } .progress-empty { display: flex; align-items: center; gap: 12px; } .progress-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #f6eadc; color: #a66832; font-size: 20px; } .progress-empty strong { font-size: 14px; } .progress-empty p { margin: 3px 0 0; color: #66817e; font-size: 12px; line-height: 1.45; }
.alerts-list { display: grid; gap: 8px; margin-top: 14px; } .alert-card { display: flex; gap: 10px; padding: 14px; border: 1px solid #ead8c5; border-radius: 16px; background: #fff9f1; } .alert-icon { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 50%; background: #f0a34b; color: #5d3510; font-weight: 900; } .alert-card strong { font-size: 13px; } .alert-card p { margin: 3px 0 0; color: #826548; font-size: 12px; }
.topbar { display: flex; justify-content: space-between; align-items: start; gap: 16px; } .header-actions { display: flex; align-items: center; gap: 7px; } .icon-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); font-size: 16px; } .theme-toggle { display: block; width: 54px; height: 32px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--text); cursor: pointer; } .theme-track { display: block; position: relative; width: 100%; height: 100%; } .theme-icon { display: grid; place-items: center; position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--text); color: var(--bg); font-size: 16px; line-height: 1; transition: transform .2s ease; } :root[data-theme="dark"] .theme-icon { transform: translateX(20px); }
.eyebrow { margin: 0 0 6px; color: var(--muted-light); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
h1, h2, p { margin-top: 0; } h1 { margin-bottom: 0; font-size: 29px; } h2 { font-size: 22px; }
.offline-dot { color: #0b6b68; background: #d9eeea; border-radius: 999px; padding: 7px 11px; font-size: 12px; font-weight: 700; }
.hero { margin-top: 30px; padding: 24px; border-radius: 24px; background: #0b6b68; color: white; box-shadow: 0 12px 28px #0b6b6825; }
.hero .eyebrow { color: #a9ded4; } .hero p:last-child { margin-bottom: 0; color: #d8f0ec; line-height: 1.65; }
.tank-section { margin-top: 28px; } .section-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; } .section-heading h2 { margin-bottom: 0; }
.program-section { margin-top: 32px; } .program-list { display: grid; gap: 10px; margin-top: 14px; } .program-card { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 17px; border: 1px solid #d3e7e2; border-radius: 18px; background: white; } .program-card h3 { margin: 0 0 4px; font-size: 17px; } .program-card p { margin: 0; color: #315c58; font-size: 13px; } .program-card .muted { color: #8aa29f; } .step-summary { margin-top: 8px; color: #66817e; font-size: 12px; } .notice-card { padding: 15px; border-radius: 16px; background: #e5f4f0; color: #315c58; font-size: 13px; }
.empty-card { margin-top: 18px; padding: 34px 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-align: center; }
.empty-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 18px; background: #e5f4f0; color: #0b6b68; font-size: 32px; }
.empty-card p { color: #66817e; line-height: 1.6; } button { border: 0; border-radius: 12px; padding: 13px 18px; background: #f0a34b; color: #39220b; font: inherit; font-weight: 800; cursor: pointer; }
.small-button, .edit-button, .archive-button { padding: 9px 12px; font-size: 13px; } .tank-list { display: grid; gap: 10px; margin-top: 14px; } .tank-card { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 17px; border: 1px solid #d3e7e2; border-radius: 18px; background: white; } .tank-card h3 { margin: 0 0 4px; font-size: 18px; } .tank-card p, .tank-meta { margin: 0; color: #66817e; font-size: 13px; } .tank-meta { margin-top: 8px; color: #315c58; } .tank-actions { display: flex; flex-direction: column; gap: 6px; } .edit-button { background: #e5f4f0; color: #0b6b68; white-space: nowrap; } .archive-button { background: #f5e9df; color: #87522e; white-space: nowrap; }
.feed-button { padding: 9px 12px; background: #0b6b68; color: white; font-size: 13px; white-space: nowrap; } .feed-button:disabled { background: #dce8e5; color: #7e9692; cursor: not-allowed; } .history-list { display: grid; gap: 8px; margin-top: 14px; } .history-item { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 16px; background: var(--surface); } .history-dot { display: grid; place-items: center; flex: 0 0 28px; height: 28px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 800; } .history-item strong { font-size: 13px; } .history-item p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
:root[data-theme="dark"] .feed-button { background: #ffffff; color: #131313; } :root[data-theme="dark"] .feed-button:disabled { background: #292929; color: #777777; } :root[data-theme="dark"] .history-item { border: 0; background: #1d1d1d; } :root[data-theme="dark"] .history-dot { border-radius: 12px; background: #292929; color: #ffffff; }
dialog { width: min(92vw, 520px); border: 0; border-radius: 22px; padding: 0; color: #153b3a; box-shadow: 0 20px 60px #153b3a40; } dialog::backdrop { background: #153b3a66; backdrop-filter: blur(3px); } #tank-form { padding: 24px; } .dialog-heading { display: flex; justify-content: space-between; align-items: start; } .dialog-heading h2 { margin-bottom: 18px; } .close-button { padding: 2px 10px; background: transparent; color: #66817e; font-size: 28px; } label { display: block; margin: 13px 0; font-size: 13px; font-weight: 700; } input, textarea { display: block; width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #c9dfda; border-radius: 10px; background: #fbfefd; color: inherit; font: inherit; } input:focus, textarea:focus { outline: 2px solid #75bcb0; border-color: transparent; } .optional { color: #8aa29f; font-weight: 400; } .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .field-error, .form-message { min-height: 18px; margin: -8px 0 4px; color: #b44b39; font-size: 12px; } .submit-button { width: 100%; margin-top: 8px; }
.bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; display: flex; justify-content: center; gap: 8px; padding: 12px; background: #ffffffee; border-top: 1px solid #dcebe8; backdrop-filter: blur(12px); }
.bottom-nav a { padding: 9px 18px; border-radius: 999px; color: #6e8b87; text-decoration: none; font-size: 14px; } .bottom-nav a.active { background: #e5f4f0; color: #0b6b68; font-weight: 800; }
@media (max-width: 430px) { .status-row { grid-template-columns: repeat(4, minmax(76px, 1fr)); } .fish-card { grid-template-columns: 62px 1fr; gap: 10px; } .fish-card-actions { flex-wrap: wrap; } }
.template-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 16px 0 12px; } .template-button, .add-step { padding: 7px 10px; background: #e5f4f0; color: #0b6b68; font-size: 12px; } .steps { display: grid; gap: 8px; } .step-row { position: relative; display: grid; grid-template-columns: 28px 1fr 92px 30px; gap: 8px; align-items: end; padding: 10px; border-radius: 12px; background: #f4faf8; } .step-row label { margin: 0; } .step-number { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #0b6b68; color: white; font-size: 12px; font-weight: 800; } .remove-step { padding: 3px 7px; background: transparent; color: #b44b39; font-size: 20px; } .add-step { margin: 10px 0; } .step-row .field-error { grid-column: 2 / -1; margin: -4px 0 0; }
.shell { background: radial-gradient(circle at 100% 0%, var(--primary-soft), transparent 34%), var(--bg); }
.topbar { padding-bottom: 5px; } .topbar h1 { letter-spacing: -.02em; } .dashboard-section { position: relative; } .dashboard-section > .section-heading { margin-bottom: 2px; }
.status-row { gap: 10px; } .status-item { position: relative; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 8px 20px #153b3a0b; transition: transform .2s ease, box-shadow .2s ease; } .status-item:hover { transform: translateY(-2px); box-shadow: 0 12px 24px #153b3a18; } .status-item strong { color: var(--text); } .status-meter { display: block; height: 4px; margin: 10px 2px 0; overflow: hidden; border-radius: 99px; background: var(--surface-soft); } .status-meter i { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.fish-grid { gap: 14px; } .fish-card { border-color: var(--line); background: var(--surface); box-shadow: 0 10px 26px #153b3a0d; transition: transform .2s ease, box-shadow .2s ease; } .fish-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px #153b3a18; } .pond-visual { min-height: 138px; background: linear-gradient(145deg, var(--primary-soft), var(--primary)); box-shadow: inset 0 -12px 20px #153b3a18; } .pond-visual span { filter: drop-shadow(0 4px 4px #153b3a2a); } .pond-visual small { align-self: end; margin-bottom: 9px; color: var(--surface); font-size: 10px; font-weight: 800; opacity: .9; } .fish-card h3 { color: var(--text); letter-spacing: -.01em; } .fish-card p, .fish-facts small, .last-feeding span { color: var(--muted); } .fish-facts span, .last-feeding strong { color: var(--text); } .tank-status { background: var(--primary-soft); color: var(--primary); } .growth-track { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; margin-top: 13px; color: var(--muted); font-size: 10px; } .growth-track span { grid-column: 1 / -1; } .growth-track i { align-self: center; display: block; height: 6px; border-radius: 99px; background: var(--surface-soft); } .growth-track b { color: var(--muted-light); font-size: 10px; font-weight: 600; }
.progress-card, .alert-card, .notice-card { box-shadow: 0 8px 20px #153b3a0b; } .progress-card { border-color: var(--line); background: var(--surface); } .progress-empty strong { color: var(--text); } .progress-empty p { color: var(--muted); } .alert-card { border-color: #ead8c5; background: var(--accent-soft); } .alert-card p { color: var(--muted); } .notice-card { background: var(--primary-soft); color: var(--text); }
.small-button, .submit-button { box-shadow: 0 6px 14px #a6683226; transition: transform .2s ease, box-shadow .2s ease; } .small-button:hover, .submit-button:hover { transform: translateY(-1px); box-shadow: 0 9px 18px #a6683235; } button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent); outline-offset: 2px; }
:root[data-theme="dark"] .fish-card, :root[data-theme="dark"] .status-item, :root[data-theme="dark"] .progress-card, :root[data-theme="dark"] .program-card, :root[data-theme="dark"] .empty-card { box-shadow: 0 10px 26px #00000035; } :root[data-theme="dark"] .pond-visual { background: linear-gradient(145deg, #285b56, #387f77); } :root[data-theme="dark"] .bottom-nav { background: #102322ee; border-color: var(--line); } :root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { border-color: var(--line); background: var(--surface-soft); color: var(--text); } :root[data-theme="dark"] dialog { background: var(--surface); color: var(--text); } :root[data-theme="dark"] .alert-card { border-color: #6e5336; } :root[data-theme="dark"] .hero { color: var(--text); }
:root[data-theme="dark"] .shell { background: var(--bg); } :root[data-theme="dark"] .header-actions .icon-button { border: 0; border-radius: 16px; background: var(--surface); color: var(--text); } :root[data-theme="dark"] .theme-toggle { border: 0; background: var(--surface-soft); } :root[data-theme="dark"] .offline-dot { border-radius: 16px; background: var(--surface); color: var(--text); } :root[data-theme="dark"] .status-item, :root[data-theme="dark"] .fish-card, :root[data-theme="dark"] .progress-card, :root[data-theme="dark"] .program-card, :root[data-theme="dark"] .empty-card, :root[data-theme="dark"] .notice-card { border: 0; border-radius: 24px; box-shadow: none; } :root[data-theme="dark"] .status-item:hover, :root[data-theme="dark"] .fish-card:hover { transform: none; box-shadow: none; } :root[data-theme="dark"] .status-icon, :root[data-theme="dark"] .tank-status, :root[data-theme="dark"] .empty-icon, :root[data-theme="dark"] .progress-icon { border-radius: 16px; background: var(--surface-soft); color: var(--text); } :root[data-theme="dark"] .status-meter, :root[data-theme="dark"] .growth-track i { background: #333333; } :root[data-theme="dark"] .status-meter i { background: #ffffff; } :root[data-theme="dark"] .pond-visual { border-radius: 20px; background: #242424; box-shadow: none; } :root[data-theme="dark"] .pond-visual span { filter: grayscale(1) brightness(0) invert(1); } :root[data-theme="dark"] .pond-visual small { color: #ffffff; } :root[data-theme="dark"] .last-feeding { border-color: #303030; } :root[data-theme="dark"] .alert-card { border: 0; border-radius: 20px; background: #242424; } :root[data-theme="dark"] .alert-icon { border-radius: 12px; background: #ffffff; color: #131313; } :root[data-theme="dark"] button { border: 0; border-radius: 16px; background: #ffffff; color: #131313; box-shadow: none; } :root[data-theme="dark"] .edit-button, :root[data-theme="dark"] .archive-button, :root[data-theme="dark"] .template-button, :root[data-theme="dark"] .add-step { border-radius: 14px; background: #292929; color: #ffffff; } :root[data-theme="dark"] .small-button, :root[data-theme="dark"] .submit-button { background: #ffffff; color: #131313; box-shadow: none; } :root[data-theme="dark"] .small-button:hover, :root[data-theme="dark"] .submit-button:hover { box-shadow: none; transform: none; } :root[data-theme="dark"] .hero { background: #1d1d1d; color: #ffffff; box-shadow: none; } :root[data-theme="dark"] .hero .eyebrow { color: #ffffff; } :root[data-theme="dark"] .hero p:last-child { color: #a7a7a7; } :root[data-theme="dark"] .bottom-nav { background: #131313; border: 0; box-shadow: none; } :root[data-theme="dark"] .bottom-nav a.active { background: #292929; color: #ffffff; } :root[data-theme="dark"] .step-row { border-radius: 18px; background: var(--surface-soft); } :root[data-theme="dark"] .step-number { border-radius: 14px; background: #ffffff; color: #131313; } :root[data-theme="dark"] .remove-step { background: transparent; color: #ffffff; } :root[data-theme="dark"] dialog { border: 0; border-radius: 28px; background: #1d1d1d; box-shadow: none; } :root[data-theme="dark"] dialog::backdrop { background: #000000aa; backdrop-filter: none; } :root[data-theme="dark"] input, :root[data-theme="dark"] textarea, :root[data-theme="dark"] select { border: 0; border-radius: 16px; background: #252525; color: #ffffff; } :root[data-theme="dark"] input:focus, :root[data-theme="dark"] textarea:focus { outline: 2px solid #ffffff; } :root[data-theme="dark"] .close-button { background: transparent; color: #ffffff; }
.settings-panel { width: min(92vw, 430px); padding: 24px; } .about-section { margin-top: 12px; padding: 20px; border-radius: 20px; background: var(--surface-soft); } .about-section h3 { margin: 0 0 7px; font-size: 20px; } .about-credit { margin: 0; color: var(--muted); font-size: 13px; } .about-version { margin: 12px 0 0; color: var(--muted-light); font-size: 11px; letter-spacing: .06em; } :root[data-theme="dark"] .settings-panel { color: #ffffff; } :root[data-theme="dark"] .about-section { background: #252525; }
.settings-profile { padding-bottom: 8px; } .settings-profile h3 { margin: 0 0 8px; font-size: 18px; } .danger-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); } .danger-section p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 1.5; } .delete-button { background: #f3deda; color: #8e3023; font-size: 12px; } :root[data-theme="dark"] .danger-section { border-color: #303030; } :root[data-theme="dark"] .delete-button { background: #292929; color: #ffffff; }
