/* ---------- Fonts ---------- */ /* TaipeiSansTC loaded via https://font.emtech.cc/css/TaipeiSansTC.css in HTML */ /* ---------- Themes (Pokémon Palette) ---------- */ :root, [data-theme="light"] { color-scheme: light; --bg: #fcfdfd; --card: #ffffff; --text: #152825; --muted: #62847f; --primary: #20b49c; --primary-hover: #189a85; --primary-foreground: #ffffff; --secondary: #e8f6f3; --secondary-hover: #d5efe9; --secondary-foreground: #152825; --accent: #ff7b73; --success: #20b49c; --warning: #e86b64; --danger: #ef4444; --border: #e0ebe9; --input-bg: #f2f7f7; --panel-bg: #f2f7f7; --pill-bg: #f2f7f7; --code-bg: #e8f3f1; --ring: #22c3a8; --shadow: 0 4px 16px rgba(21, 40, 37, 0.06); --ok-bg: rgba(32, 180, 156, 0.12); --ok-border: rgba(32, 180, 156, 0.35); --warn-bg: rgba(255, 123, 115, 0.12); --warn-border: rgba(255, 123, 115, 0.35); --err-bg: rgba(239, 68, 68, 0.1); --err-border: rgba(239, 68, 68, 0.3); } [data-theme="dark"], .dark { color-scheme: dark; --bg: #141a19; --card: #1b2725; --text: #f4f6f5; --muted: #98b3b0; --primary: #3cddc2; --primary-hover: #2fc9b0; --primary-foreground: #0a0a0a; --secondary: #253735; --secondary-hover: #2f4643; --secondary-foreground: #f4f6f5; --accent: #ff7c75; --success: #3cddc2; --warning: #ff7c75; --danger: #f87171; --border: #2d4340; --input-bg: #141a19; --panel-bg: #253735; --pill-bg: #253735; --code-bg: #253735; --ring: #3cddc2; --shadow: 0 8px 24px rgba(0, 0, 0, 0.35); --ok-bg: rgba(60, 221, 194, 0.12); --ok-border: rgba(60, 221, 194, 0.35); --warn-bg: rgba(255, 124, 117, 0.12); --warn-border: rgba(255, 124, 117, 0.35); --err-bg: rgba(248, 113, 113, 0.12); --err-border: rgba(248, 113, 113, 0.35); } /* ---------- Reset / base ---------- */ *, *::before, *::after { box-sizing: border-box; } html { font-size: 16px; -webkit-text-size-adjust: 100%; } body { margin: 0; min-height: 100vh; font-family: "Inter", "TaipeiSansTC", "Taipei Sans TC", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg); color: var(--text); line-height: 1.55; letter-spacing: 0.01em; overflow-x: hidden; transition: background-color 0.2s ease, color 0.2s ease; } img, svg, video { max-width: 100%; height: auto; display: block; } h1, h2, h3 { font-family: inherit; letter-spacing: -0.015em; overflow-wrap: anywhere; } h1 { margin: 0 0 0.2rem; font-size: clamp(1.25rem, 2.5vw, 1.5rem); font-weight: 700; line-height: 1.25; } h2 { margin: 0 0 0.85rem; font-size: 1.05rem; font-weight: 600; line-height: 1.3; } h3 { margin: 0; font-size: 0.95rem; font-weight: 600; } p { overflow-wrap: anywhere; } code, .preview, .date-list, .meeting-time { font-family: "Inter", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; } a { color: var(--primary); word-break: break-word; } /* ---------- Layout ---------- */ .container { width: 100%; max-width: 880px; margin: 0 auto; padding: 1.25rem 1rem 3rem; } .container.narrow { max-width: 640px; } .topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.85rem 1rem; margin-bottom: 1.15rem; } .topbar.compact { margin-bottom: 1rem; } .plan-view { min-width: 0; } .table-wrap { overflow-x: auto; margin-top: 0.5rem; } .data-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; } .data-table th, .data-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--border, rgba(127, 127, 127, 0.25)); vertical-align: top; } .data-table th { font-weight: 600; opacity: 0.85; } .data-table code { font-size: 0.8em; } .plan-day { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg); padding: 0.7rem 0.85rem; margin-bottom: 0.65rem; min-width: 0; } .plan-day-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.4rem; font-size: 0.9rem; } .plan-row { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; padding: 0.35rem 0; border-top: 1px solid var(--border); font-size: 0.88rem; align-items: baseline; } .mode-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.55rem; margin-bottom: 0.9rem; } .mode-option { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.7rem 0.8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg); cursor: pointer; min-width: 0; } .mode-option input { width: auto; margin: 0 0 0.25rem; } .mode-option span { font-weight: 600; font-size: 0.92rem; } .mode-option small { color: var(--muted); font-size: 0.78rem; line-height: 1.35; } .mode-option:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); } .date-panel { min-width: 0; } .date-panel.hidden, .hidden { display: none !important; } .topbar > div:first-child { min-width: 0; flex: 1 1 12rem; } .topbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; flex: 0 1 auto; min-width: 0; } .subtitle { color: var(--muted); margin: 0; font-size: 0.9rem; } /* ---------- Nav / theme ---------- */ .nav { display: flex; flex-wrap: wrap; gap: 0.3rem; align-items: center; } .nav-link { color: var(--muted); text-decoration: none; padding: 0.45rem 0.85rem; border-radius: 8px; font-weight: 600; font-size: 0.88rem; border: 1px solid var(--border); background: var(--card); white-space: nowrap; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; cursor: pointer; display: inline-flex; align-items: center; } .nav-link:hover { color: var(--text); background: var(--panel-bg); } .nav-link.active { color: var(--text); background: var(--card); border-color: var(--border); box-shadow: var(--shadow); } .theme-toggle { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 0.15rem; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 0.18rem; box-shadow: var(--shadow); max-width: 100%; } .theme-btn { border: none; background: transparent; color: var(--muted); font-family: inherit; font-size: 0.75rem; font-weight: 600; padding: 0.32rem 0.55rem; border-radius: 999px; cursor: pointer; line-height: 1.2; white-space: nowrap; } .theme-btn:hover { color: var(--text); } .theme-btn.active { background: var(--primary); color: var(--primary-foreground); } /* ---------- Cards ---------- */ .card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.15rem; margin-bottom: 0.85rem; box-shadow: var(--shadow); min-width: 0; overflow: hidden; } .muted-card { opacity: 0.95; } .status-strip { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem; } .status-strip > div:first-child { min-width: 0; flex: 1 1 14rem; } .section-head { display: flex; align-items: center; justify-content: space-between; gap: 0.65rem; flex-wrap: wrap; margin-bottom: 0.35rem; } .section-head h2 { margin: 0; min-width: 0; } /* ---------- Pills / badges ---------- */ .pills, .meetings-summary { display: flex; flex-wrap: wrap; gap: 0.45rem; min-width: 0; } .meetings-summary { margin-bottom: 0.75rem; } .pill { display: inline-flex; align-items: center; gap: 0.35rem; max-width: 100%; background: var(--pill-bg); border: 1px solid var(--border); border-radius: 999px; padding: 0.28rem 0.65rem; font-size: 0.8rem; min-width: 0; } .pill.ok { border-color: var(--ok-border); background: var(--ok-bg); } .pill.warn { border-color: var(--warn-border); background: var(--warn-bg); } .pill-label { color: var(--muted); flex-shrink: 0; } .pill-value { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 12rem; } .badge { display: inline-flex; align-items: center; max-width: 100%; padding: 0.28rem 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600; border: 1px solid transparent; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .badge.ok { background: var(--ok-bg); color: var(--success); border-color: var(--ok-border); } .badge.warn { background: var(--warn-bg); color: var(--warning); border-color: var(--warn-border); } .badge.err { background: var(--err-bg); color: var(--danger); border-color: var(--err-border); } /* ---------- Forms ---------- */ .form-row { display: flex; gap: 0.85rem; flex-wrap: wrap; align-items: flex-end; } label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; min-width: 0; } .form-row > label { flex: 1 1 9rem; min-width: 8rem; max-width: 100%; } .hint { color: var(--muted); font-size: 0.85rem; margin: 0 0 0.9rem; overflow-wrap: anywhere; } .hint.small { margin-top: 0.5rem; margin-bottom: 0; font-size: 0.8rem; } .settings-form fieldset { border: 1px solid var(--border); border-radius: 10px; margin: 0 0 0.85rem; padding: 0.85rem; background: var(--panel-bg); min-width: 0; } .settings-form legend { padding: 0 0.4rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; } .settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 0.75rem; min-width: 0; } .settings-grid > * { min-width: 0; } .settings-grid .full-span, .hint.small.full-span { grid-column: 1 / -1; margin: 0; } .settings-grid .checkbox-row, .checkbox-row { flex-direction: row; align-items: center; gap: 0.5rem; padding-top: 0.25rem; } .checkbox, .dry-run-row { flex-direction: row; align-items: center; gap: 0.45rem; color: var(--muted); padding-bottom: 0.1rem; flex: 0 1 auto; min-width: auto; } input[type="text"], input[type="url"], input[type="password"], input[type="number"], input[type="date"], textarea, .settings-form input[type="text"], .settings-form input[type="url"], .settings-form input[type="password"], .settings-form input[type="number"] { width: 100%; max-width: 100%; min-width: 0; background: var(--input-bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0.5rem 0.7rem; font-family: inherit; font-size: 0.92rem; line-height: 1.4; } input[type="date"] { min-height: 2.4rem; } input:focus, textarea:focus { outline: 2px solid var(--ring); outline-offset: 1px; } input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.85; } .settings-status { color: var(--muted); font-size: 0.85rem; overflow-wrap: anywhere; min-width: 0; } .settings-status.ok { color: var(--success); } .settings-status.err { color: var(--danger); margin: 0.55rem 0 0; display: block; } #statusError[hidden] { display: none !important; } /* ---------- Buttons / actions ---------- */ .actions { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin-top: 0.85rem; min-width: 0; } .actions.tight { margin-top: 0; } .btn { border: none; border-radius: 8px; padding: 0.48rem 0.9rem; font-weight: 600; cursor: pointer; font-size: 0.88rem; font-family: inherit; line-height: 1.25; white-space: nowrap; transition: background 0.15s ease, transform 0.05s ease, opacity 0.15s ease; } .btn:active { transform: translateY(1px); } .btn.primary { background: var(--primary); color: var(--primary-foreground); } .btn.primary:hover { background: var(--primary-hover); } .btn.secondary { background: var(--secondary); color: var(--secondary-foreground); border: 1px solid var(--border); } .btn.secondary:hover { background: var(--secondary-hover); } a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; } /* ---------- Details / lists ---------- */ .more-dates { margin-top: 1rem; padding-top: 0.85rem; border-top: 1px solid var(--border); } .more-dates summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 0.9rem; margin-bottom: 0.5rem; } .date-list { width: 100%; margin-top: 0.35rem; background: var(--input-bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 0.75rem; font-size: 0.85rem; resize: vertical; min-height: 6rem; } .result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; } .result-grid > div { min-width: 0; } .preview { background: var(--input-bg); border: 1px solid var(--border); border-radius: 8px; padding: 0.8rem; overflow: auto; max-height: 320px; font-size: 0.78rem; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; margin: 0; max-width: 100%; } .subhead { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--muted); font-weight: 600; } .task-list { list-style: none; padding: 0; margin: 0.85rem 0 0; } .task-list li { padding: 0.5rem 0; border-bottom: 1px solid var(--border); font-size: 0.88rem; overflow-wrap: anywhere; } .task-list .tag, .meeting-subject .tag { display: inline-block; font-size: 0.7rem; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--ok-bg); color: var(--primary); margin-right: 0.3rem; font-weight: 600; vertical-align: middle; } .task-list .err { color: var(--danger); } /* ---------- Auth panels ---------- */ .auth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 0.85rem; min-width: 0; } .auth-panel { background: var(--panel-bg); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem; min-width: 0; overflow: hidden; } .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.75rem; min-width: 0; } .panel-head h3 { min-width: 0; } .install-steps { margin: 0.75rem 0 0; padding-left: 1.2rem; color: var(--muted); font-size: 0.88rem; } .install-steps li { margin-bottom: 0.3rem; overflow-wrap: anywhere; } .install-steps code { background: var(--code-bg); padding: 0.1rem 0.3rem; border-radius: 4px; font-size: 0.85em; word-break: break-all; } /* ---------- Meetings ---------- */ .muted-inline { color: var(--muted); font-size: 0.82rem; overflow-wrap: anywhere; min-width: 0; } .meetings-list { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; } .meeting-day { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg); padding: 0.7rem 0.85rem; min-width: 0; overflow: hidden; } .meeting-day-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.45rem; font-size: 0.9rem; } .meeting-items { list-style: none; margin: 0; padding: 0; } .meeting-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem 0.75rem; padding: 0.4rem 0; border-top: 1px solid var(--border); font-size: 0.88rem; min-width: 0; } .meeting-time { color: var(--muted); font-variant-numeric: tabular-nums; flex: 0 0 auto; min-width: 5.5rem; } .meeting-hours { font-weight: 700; color: var(--primary); flex: 0 0 auto; min-width: 2.5rem; } .meeting-subject { flex: 1 1 10rem; min-width: 0; overflow-wrap: anywhere; } /* ---------- Responsive ---------- */ @media (max-width: 720px) { .container { padding: 1rem 0.85rem 2.5rem; } .result-grid { grid-template-columns: 1fr; } .topbar-actions { width: 100%; justify-content: space-between; } .theme-btn { padding: 0.3rem 0.45rem; font-size: 0.72rem; } .btn { padding: 0.48rem 0.75rem; } .card { padding: 0.95rem; } .pill-value { max-width: 8rem; } } @media (max-width: 420px) { .topbar-actions { flex-direction: column; align-items: stretch; } .theme-toggle, .nav { width: 100%; justify-content: center; } .actions .btn, .actions a.btn { flex: 1 1 auto; text-align: center; } } /* ---------- Teams MFA modal (noVNC + screenshot) ---------- */ .modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(15, 25, 23, 0.55); backdrop-filter: blur(4px); } .modal.hidden { display: none; } .modal-card { background: var(--card); color: var(--text); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); max-width: 520px; width: 100%; max-height: min(92vh, 900px); overflow: auto; padding: 1.1rem 1.25rem 1.25rem; } .modal-card.modal-wide { max-width: min(1100px, 96vw); } .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 0.5rem; } .modal-head h2 { margin: 0; font-size: 1.15rem; } .btn-sm { padding: 0.35rem 0.7rem; font-size: 0.85rem; } .mfa-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.85rem; margin-top: 0.75rem; } @media (max-width: 800px) { .mfa-grid { grid-template-columns: 1fr; } } .mfa-panel { border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg); padding: 0.55rem; min-height: 0; } .mfa-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.4rem; font-size: 0.9rem; } .mfa-frame { width: 100%; height: min(52vh, 420px); border: 1px solid var(--border); border-radius: 8px; background: #111; } .mfa-shot { display: block; width: 100%; height: min(52vh, 420px); object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #0b1210; } .linkish { color: var(--primary); font-size: 0.85rem; text-decoration: none; } .linkish:hover { text-decoration: underline; } .muted-inline { color: var(--muted); font-size: 0.8rem; }