/* ==========================================================================
   Home App Shell & Backgrounds
   ========================================================================== */
body {
    background: 
        radial-gradient(circle at 10% 10%, rgba(15, 124, 114, 0.18), transparent 28%), 
        radial-gradient(circle at 90% 0, rgba(103, 87, 216, 0.16), transparent 25%), 
        linear-gradient(135deg, #f8f1e4, #e6f2ee 55%, #e8ecff);
    background-attachment: fixed;
}

.home-shell {
    place-items: start center;
    padding: 28px 16px 48px;
    min-height: 100vh;
}

.task-panel.home-panel {
    width: min(1220px, 100%);
    padding: clamp(18px, 3vw, 34px);
    border-radius: 28px;
}

/* ==========================================================================
   Glass Navigation
   ========================================================================== */
.glass-nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 24px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 14px 38px rgba(18, 31, 31, 0.09);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.nav-links {
    display: flex;
    gap: 8px;
}

.glass-nav .page-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--muted, #666);
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.glass-nav .page-nav-link:hover {
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink, #111);
}

.glass-nav .page-nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent, #0f7c72), var(--accent-dark, #09524d));
    box-shadow: 0 4px 12px rgba(15, 124, 114, 0.25);
}

.icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: var(--ink, #111);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: rotate(15deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.home-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 26px;
    margin: 0;
    padding: clamp(32px, 5vw, 56px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 240, 0.62)), 
        radial-gradient(circle at 100% 0, rgba(15, 124, 114, 0.22), transparent 34%);
    box-shadow: 0 18px 48px rgba(35, 48, 47, 0.1);
    overflow: hidden;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.hero-copy h1 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    letter-spacing: -0.05em;
    line-height: 1.05;
    margin-top: 8px;
    color: var(--ink, #111);
}

.hero-text {
    max-width: 620px;
    margin: 20px 0 0;
    color: var(--muted, #555);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 500;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-actions .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--accent-dark, #09524d);
    background: rgba(217, 239, 234, 0.8);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-actions .badge:hover {
    transform: translateY(-2px);
    background: rgba(217, 239, 234, 1);
}

/* Orbit Animation */
.hero-orbit {
    position: relative;
    z-index: 1;
    min-width: 190px;
    display: grid;
    place-items: center;
}

.orbit-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 2px dashed rgba(15, 124, 114, 0.25);
    border-radius: 50%;
    animation: spin 24s linear infinite;
}

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

.home-panel .task-count {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--ink, #111), var(--accent-dark, #09524d));
    box-shadow: 0 18px 42px rgba(9, 82, 77, 0.28);
    color: #fff;
}

.task-count .count-number {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
}

.task-count .count-label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
    margin-top: 4px;
}

/* ==========================================================================
   Grid & Cards Base
   ========================================================================== */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.stat-card, .capture-card, .team-snapshot, .board-card {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    background: rgba(255, 255, 251, 0.65);
    box-shadow: 0 16px 42px rgba(35, 48, 47, 0.06);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(35, 48, 47, 0.1);
}

.quick-stats .stat-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card strong {
    display: block;
    font-size: 2.2rem;
    color: var(--ink, #111);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card span {
    color: var(--muted, #666);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.workspace-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 20px;
    align-items: start;
}

.capture-card, .team-snapshot, .board-card {
    padding: 24px;
}

/* ==========================================================================
   Forms & Inputs
   ========================================================================== */
.section-heading {
    margin-bottom: 20px;
}

.home-panel .task-form {
    display: grid;
    gap: 16px;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf8, #f7efe0);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.home-panel .task-form-row {
    display: flex;
    gap: 12px;
}

.home-panel .primary-capture-row {
    align-items: flex-start;
}

.input-wrapper, .field-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.task-name-field {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.task-name-label {
    flex: 0 0 auto;
    min-width: 52px;
    padding-top: 16px;
    color: var(--accent-dark, #09524d);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    line-height: 1;
    text-align: start;
    text-transform: uppercase;
}

.home-panel .task-form input, 
.home-panel .task-form textarea, 
.home-panel .task-form select,
.team-form input {
    width: 100%;
    border: 1.5px solid rgba(15, 124, 114, 0.14);
    border-radius: 14px;
    background: linear-gradient(135deg, #ffffff, #eef8f5);
    padding: 14px 16px;
    color: var(--ink, #111);
    font-size: 1rem;
    font-family: inherit;
    text-align: start;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.2s ease;
}

.home-panel .task-form input:focus, 
.home-panel .task-form textarea:focus, 
.home-panel .task-form select:focus,
.team-form input:focus {
    outline: none;
    border-color: var(--accent, #0f7c72);
    box-shadow: 0 0 0 4px rgba(15, 124, 114, 0.15);
    background: #fff;
}

.home-panel .task-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* Buttons */
.primary-capture-row .btn-primary {
    align-self: flex-start;
    min-height: 48px;
    border: 1.5px solid rgba(15, 124, 114, 0.14);
    background: linear-gradient(135deg, #ffffff, #eef8f5);
    color: var(--accent-dark, #09524d);
    box-shadow: 0 10px 22px rgba(15, 124, 114, 0.12);
}

.primary-capture-row .btn-primary:hover {
    background: linear-gradient(135deg, #ffffff, #e2f4ef);
    box-shadow: 0 14px 26px rgba(15, 124, 114, 0.18);
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent, #0f7c72), var(--accent-dark, #09524d));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 124, 114, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(15, 124, 114, 0.3);
}

.btn-primary:active, .btn-secondary:active {
    transform: translateY(0);
}

/* Compact 3D Quick Capture */
.compact-capture-card {
    transform-style: preserve-3d;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 246, 242, 0.82)),
        radial-gradient(circle at 12% 0, rgba(255, 180, 71, 0.18), transparent 38%);
    box-shadow: 0 22px 46px rgba(15, 45, 50, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.compact-capture-card .section-heading {
    margin-bottom: 12px;
}

.compact-capture-card .section-heading h2 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.home-panel .compact-capture-card .task-form {
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(160deg, #ffffff, #eef8f5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 14px 30px rgba(15, 45, 50, 0.09);
}

.home-panel .compact-capture-card .primary-capture-row {
    align-items: stretch;
}

.home-panel .compact-capture-card .task-form input,
.home-panel .compact-capture-card .task-form textarea,
.home-panel .compact-capture-card .task-form select {
    padding: 12px 14px;
}

.details-toggle-3d {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 18px;
    border: 0;
    border-radius: 14px;
    color: #093f3b;
    background: linear-gradient(145deg, #ffffff, #d7eee8);
    font: inherit;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 9px 0 #9acbc1, 0 18px 28px rgba(9, 82, 77, 0.18);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.details-toggle-3d:hover,
.details-toggle-3d:focus-visible {
    outline: none;
    background: linear-gradient(145deg, #ffffff, #c9f4eb);
    transform: translateY(-2px) rotateX(6deg);
    box-shadow: 0 11px 0 #8fc4ba, 0 22px 34px rgba(9, 82, 77, 0.22);
}

.details-toggle-3d:active {
    transform: translateY(5px);
    box-shadow: 0 4px 0 #8fc4ba, 0 10px 18px rgba(9, 82, 77, 0.16);
}

.quick-details-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(15, 124, 114, 0.16);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(226, 242, 238, 0.7));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 14px 26px rgba(35, 48, 47, 0.08);
    animation: detailsRise 0.24s ease both;
}

.quick-details-panel[hidden] {
    display: none;
}

@keyframes detailsRise {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Custom File Drop Zone */
.file-drop-zone {
    position: relative;
    border: 2px dashed rgba(0, 0, 0, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
    overflow: hidden;
}

.file-drop-zone:hover {
    border-color: var(--accent, #0f7c72);
    background: rgba(15, 124, 114, 0.05);
}

.file-drop-zone label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 100%;
    padding: 14px;
    cursor: pointer;
    font-weight: 600;
    color: var(--muted, #555);
}

.file-drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

/* ==========================================================================
   Team Panel
   ========================================================================== */
.team-snapshot {
    margin-top: 0;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.mini-link {
    color: var(--accent-dark, #09524d);
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    padding: 6px 12px;
    background: rgba(15, 124, 114, 0.1);
    border-radius: 999px;
    transition: background 0.2s;
}

.mini-link:hover {
    background: rgba(15, 124, 114, 0.2);
}

.team-form .input-wrapper {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
}

.team-snapshot .team-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom Scrollbar for team list */
.team-list::-webkit-scrollbar { width: 6px; }
.team-list::-webkit-scrollbar-track { background: transparent; }
.team-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }

/* ==========================================================================
   Kanban Board
   ========================================================================== */
.board-card {
    margin-top: 24px;
}

.board-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.home-panel .toolbar {
    display: flex;
    gap: 4px;
    margin: 0;
    padding: 6px;
    border-radius: 999px;
    background: #eef7f4;
    border: 1px solid rgba(15, 124, 114, 0.1);
}

.filter-button {
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--muted, #666);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-button:hover {
    color: var(--ink, #111);
}

.filter-button.active {
    background: #fff;
    color: var(--accent-dark, #09524d);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.home-panel .kanban-board {
    margin-top: 14px;
    /* Assumption: flex/grid layout applied in kanban-render.js/pages.css */
}

.home-panel .kanban-column {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px dashed rgba(0, 0, 0, 0.08);
}

/* Empty State Styling */
.home-panel .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    border-radius: 24px;
    background: rgba(255, 250, 240, 0.7);
    border: 2px dashed rgba(0, 0, 0, 0.06);
    margin-top: 20px;
}

.home-panel .empty-state:not(.visible) {
    display: none;
}

.empty-icon {
    color: var(--accent, #0f7c72);
    opacity: 0.6;
    margin-bottom: 16px;
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    background: transparent;
    color: var(--muted, #666);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 20px;
}

.ghost-button:hover {
    background: rgba(0,0,0,0.05);
    color: var(--ink, #111);
}

/* ==========================================================================
   Innovation Platform Graphics
   ========================================================================== */
.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.home-hero::before {
    width: 340px;
    height: 340px;
    right: -100px;
    top: -120px;
    border-radius: 50%;
    background: conic-gradient(from 90deg, rgba(15, 124, 114, 0.26), rgba(103, 87, 216, 0.2), rgba(255, 180, 71, 0.22), rgba(15, 124, 114, 0.26));
    filter: blur(4px);
    opacity: 0.85;
}

.home-hero::after {
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 124, 114, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 124, 114, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 72%);
}

.innovation-orbit::before {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.94), transparent 11%),
        radial-gradient(circle at 64% 24%, rgba(255, 180, 71, 0.72), transparent 9%),
        radial-gradient(circle at 70% 68%, rgba(103, 87, 216, 0.45), transparent 10%),
        radial-gradient(circle at 25% 70%, rgba(15, 124, 114, 0.44), transparent 9%);
    animation: pulseGlow 5s ease-in-out infinite;
}

.orbit-dot {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #ffb447;
    box-shadow: 0 10px 24px rgba(255, 180, 71, 0.36);
}

.dot-one {
    top: 26px;
    right: 24px;
}

.dot-two {
    bottom: 34px;
    left: 22px;
    background: #6757d8;
    box-shadow: 0 10px 24px rgba(103, 87, 216, 0.36);
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(0.96); opacity: 0.72; }
    50% { transform: scale(1.03); opacity: 1; }
}

.innovation-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 18px;
    align-items: center;
    min-height: clamp(150px, 18vh, 210px);
    margin: 18px 0 22px;
    padding: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 28px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(238, 248, 245, 0.66)),
        radial-gradient(circle at 100% 0, rgba(103, 87, 216, 0.18), transparent 32%);
    box-shadow: 0 16px 42px rgba(35, 48, 47, 0.08);
}

.showcase-copy h2 {
    margin: 4px 0 8px;
    color: var(--ink, #111);
    font-size: clamp(1.35rem, 3vw, 2.1rem);
    letter-spacing: -0.03em;
}

.showcase-copy p {
    max-width: 560px;
    margin: 0;
    color: var(--muted, #555);
    line-height: 1.5;
}

.showcase-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.showcase-metrics span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-dark, #09524d);
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(15, 124, 114, 0.08);
}

.showcase-metrics strong {
    color: var(--ink, #111);
    font-size: 1rem;
}

.innovation-slider {
    position: relative;
    min-height: 128px;
    overflow: hidden;
    border-radius: 22px;
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

.innovation-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: innovationSlide 18s ease-in-out infinite;
}

.innovation-slide {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(360px, 72vw);
    min-height: 124px;
    padding: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(35, 48, 47, 0.08);
}

.innovation-slide::after {
    content: "";
    position: absolute;
    inset: auto 16px 14px 72px;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent, #0f7c72), rgba(103, 87, 216, 0.72), rgba(255, 180, 71, 0.8));
}

.stage-icon {
    position: relative;
    z-index: 1;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 24px rgba(35, 48, 47, 0.1);
    font-size: 1.45rem;
}

.innovation-slide h3 {
    margin: 0 0 6px;
    color: var(--ink, #111);
    font-size: 1.1rem;
}

.innovation-slide p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted, #555);
    font-size: 0.93rem;
    line-height: 1.45;
}

.stage-discover { background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(225, 247, 241, 0.78)); }
.stage-prototype { background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(235, 232, 255, 0.78)); }
.stage-launch { background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(255, 241, 213, 0.82)); }
.stage-learn { background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(225, 238, 255, 0.8)); }

@keyframes innovationSlide {
    0%, 18% { transform: translateX(0); }
    25%, 43% { transform: translateX(calc(-25% + 3.5px)); }
    50%, 68% { transform: translateX(calc(-50% + 7px)); }
    75%, 93% { transform: translateX(calc(-75% + 10.5px)); }
    100% { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .orbit-ring,
    .innovation-orbit::before,
    .quick-details-panel,
    .innovation-track {
        animation: none;
    }
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */
@media (max-width: 900px) {
    .glass-nav {
        position: static;
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        border-radius: 24px;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .home-hero, .workspace-grid {
        grid-template-columns: 1fr;
    }

    .home-hero {
        display: flex;
        flex-direction: column-reverse;
        text-align: center;
    }

    .hero-copy h1 {
        font-size: 2.5rem;
    }
    
    .hero-text {
        margin: 16px auto 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-orbit {
        min-height: 180px;
    }

    .quick-stats {
        grid-template-columns: 1fr;
    }

    .innovation-showcase {
        grid-template-columns: 1fr;
    }

    .home-panel .task-form-row {
        flex-direction: column;
    }

    .primary-capture-row .btn-primary {
        margin-top: 0;
    }

    .board-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 620px) {
    .innovation-showcase {
        min-height: auto;
        padding: 14px;
    }

    .innovation-slide {
        width: min(300px, 78vw);
    }
}

/* Notes Panel */
.notes-section {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.notes-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.notes-header h2 {
    margin: 0 0 4px;
    font-size: 1.35rem;
    color: #1f2937;
}

.notes-header p,
.notes-empty {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

.notes-form,
.notes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.notes-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    resize: vertical;
    font: inherit;
    color: #111827;
}

.notes-form textarea:focus {
    outline: none;
    border-color: var(--accent, #0f7c72);
    box-shadow: 0 0 0 4px rgba(15, 124, 114, 0.14);
}

.notes-add-btn,
.notes-delete-btn {
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.notes-add-btn {
    align-self: flex-start;
    padding: 11px 18px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent, #0f7c72), var(--accent-dark, #09524d));
}

.notes-list {
    margin-top: 18px;
}

.note-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid rgba(15, 124, 114, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
}

.note-card-text {
    margin: 0;
    color: #111827;
    line-height: 1.55;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.note-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    color: #6b7280;
    font-size: 0.85rem;
}

.notes-delete-btn {
    padding: 7px 10px;
    color: var(--danger, #be4b45);
    background: #f9e4dc;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

