@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    font-family: 'Sora', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: #0b1020;
    --bg: #f6f7fb;
    --card: #ffffff;
    --card-muted: #f1f5f9;
    --border: rgba(15, 23, 42, 0.08);
    --text: #0b1020;
    --muted: #516173;
    --primary: #0f766e;
    --primary-hover: #0b5c54;
    --accent: #f97316;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #f59e0b;
    --shadow-sm: 0 2px 12px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 20px 40px rgba(15, 23, 42, 0.1);
    --radius: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background:
        radial-gradient(900px 420px at 8% -10%, rgba(14, 165, 233, 0.16) 0%, transparent 60%),
        radial-gradient(820px 480px at 92% -8%, rgba(249, 115, 22, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #f7f8fb 0%, #f1f5f9 100%);
    min-height: 100vh;
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

.hidden {
    display: none !important;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 1.05rem;
}

.navbar-brand svg {
    width: 18px;
    height: 18px;
}

.brand-tag {
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.12);
    color: var(--primary-hover);
    font-size: 0.72rem;
    font-weight: 600;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.user-info i {
    width: 14px;
    height: 14px;
}

.page {
    width: auto;
    max-width: 1040px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 2rem;
    align-items: center;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
}

.hero h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin: 0.6rem 0 0.8rem;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 1rem;
    max-width: 520px;
}

.hero-progress {
    margin-top: 1.4rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.hero-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 600;
}

.progress-label {
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.progress-value {
    color: var(--text);
    font-size: 1rem;
    font-weight: 700;
}

.progress-track {
    height: 10px;
    border-radius: 999px;
    background: var(--card-muted);
    overflow: hidden;
    position: relative;
}

.progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    box-shadow: 0 0 12px rgba(15, 118, 110, 0.25);
    transition: width 1.8s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.65), transparent);
    animation: progress-sheen 2.8s ease-in-out infinite alternate;
    opacity: 0.7;
}

.progress-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.progress-note {
    font-size: 0.82rem;
    color: var(--muted);
    text-align: right;
}

.progress-note.is-empty {
    color: var(--danger);
    font-weight: 600;
}

@keyframes progress-sheen {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(200%);
    }
}

.hero-card {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(249, 115, 22, 0.1));
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.hero-card-title {
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.hero-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.hero-chip-row {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-chip {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(15, 118, 110, 0.14);
    color: var(--primary-hover);
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-chip.accent {
    background: rgba(249, 115, 22, 0.18);
    color: #9a3412;
}

.action-selector {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.action-card {
    background: var(--card);
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.action-card.is-active {
    border-color: rgba(15, 118, 110, 0.5);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12), var(--shadow-md);
}

.action-icon {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 118, 110, 0.12);
    border-radius: 10px;
    color: var(--primary);
}

.action-icon i {
    width: 18px;
    height: 18px;
}

.action-icon svg {
    width: 18px;
    height: 18px;
}

.action-title {
    font-weight: 600;
    font-size: 1rem;
}

.action-desc {
    color: var(--muted);
    font-size: 0.9rem;
}

.panel-group {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.panel {
    display: none;
}

.panel.active {
    display: block;
    animation: panelIn 0.3s ease;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
    align-items: stretch;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.card-head h2 {
    font-size: 1.15rem;
}

.card-tag {
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    background: var(--card-muted);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.card-tag.accent {
    background: rgba(249, 115, 22, 0.16);
    color: #9a3412;
}

.card-tag.danger {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.subtitle {
    color: var(--muted);
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.guide-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}

.guide-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

/* guide-note follows team_invite */
.guide-note {
    margin-top: 1.2rem;
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.15);
}

.info-list {
    margin-top: 0.8rem;
    padding-left: 1.1rem;
    color: var(--muted);
    font-size: 0.9rem;
    display: grid;
    gap: 0.4rem;
}



.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.form-help {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.btn {
    border-radius: 10px;
    padding: 0.7rem 1.2rem;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn.block {
    width: 100%;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover:not(:disabled) {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.2);
}

.btn-secondary {
    background: rgba(15, 118, 110, 0.1);
    color: var(--primary);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(15, 118, 110, 0.16);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
    color: var(--primary-hover);
    border-color: rgba(15, 118, 110, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-xs {
    padding: 0.35rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

.empty-state {
    border: 1px dashed rgba(15, 118, 110, 0.2);
    border-radius: 14px;
    padding: 1.8rem;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.6);
}

.empty-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 0.8rem;
    border-radius: 12px;
    background: rgba(15, 118, 110, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.empty-icon i {
    width: 20px;
    height: 20px;
}

.empty-title {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.empty-message {
    font-size: 0.9rem;
}

.result-state {
    text-align: center;
}

.result-icon {
    margin-bottom: 0.8rem;
    color: var(--primary);
}

.result-icon i {
    width: 56px;
    height: 56px;
}

.result-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.result-message {
    color: var(--muted);
    margin-bottom: 1.4rem;
    font-size: 0.95rem;
}

.result-guide {
    background: rgba(15, 118, 110, 0.08);
    border: 1px solid rgba(15, 118, 110, 0.15);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    margin-bottom: 1.2rem;
    text-align: left;
}

.result-guide-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.result-guide-list {
    color: var(--muted);
    font-size: 0.9rem;
    display: grid;
    gap: 0.3rem;
}

.result-details {
    background: rgba(15, 118, 110, 0.06);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 12px;
    padding: 1rem;
    text-align: left;
    margin-bottom: 1.4rem;
}

.result-detail-item {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(15, 118, 110, 0.1);
    font-size: 0.9rem;
}

.result-detail-item:last-child {
    border-bottom: none;
}

.result-detail-label {
    color: var(--muted);
}

.result-detail-value {
    font-weight: 600;
    color: var(--text);
}

.result-actions {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(22, 163, 74, 0.12);
    color: #166534;
}

.badge-error {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
}

.badge-muted {
    background: rgba(148, 163, 184, 0.18);
    color: var(--muted);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.16);
    color: #92400e;
}

.record-card {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.toast {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    padding: 0.9rem 1.2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: none;
    z-index: 1200;
    font-size: 0.9rem;
}

.toast.show {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--danger);
}

.toast.info {
    border-left: 4px solid var(--primary);
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 4000;
}

.modal-card {
    width: min(520px, 100%);
    padding: 1.5rem 1.6rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--card);
    box-shadow: var(--shadow-md);
}

.modal-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.modal-message {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-line;
}

.notice-message {
    white-space: pre-line;
}

.notice-snooze {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.8rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.notice-snooze input {
    accent-color: var(--primary);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 1.2rem;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

.loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.logo-container {
    width: 60px;
    height: 60px;
}

.tech-stroke {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 2px rgba(15, 118, 110, 0.4));
}

.ring-group {
    transform-origin: 50px 50px;
    animation: spin 2s linear infinite;
}

.draw-path {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 0.8s ease-out forwards;
}

.center-circle {
    animation: pop 0.3s ease forwards 0.5s;
    opacity: 0;
    transform-origin: 50px 50px;
    fill: var(--bg);
}

.spinning {
    animation: spin 0.9s linear infinite;
}

@keyframes panelIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pop {
    to {
        opacity: 1;
    }
}

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }
    .action-selector {
        grid-template-columns: 1fr;
    }
    .panel-grid {
        grid-template-columns: 1fr;
    }
    .guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .navbar {
        padding: 0.8rem 1.2rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .navbar-right {
        width: 100%;
        justify-content: flex-start;
    }
    .page {
        padding: 2rem 1.1rem 3rem;
    }
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero-progress {
        padding: 0.9rem 1rem;
    }
    .progress-label {
        font-size: 0.7rem;
    }
    .progress-value {
        font-size: 0.95rem;
    }
    .progress-note {
        font-size: 0.78rem;
    }
    .toast {
        left: 1rem;
        right: 1rem;
        top: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
