/* --- Secretary Mode Styles --- */
.secretary-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    animation: fadeIn 0.4s ease-out;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.info-card {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.path-display {
    display: block;
    background: #1e293b;
    color: #38bdf8;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-top: 8px;
    overflow-x: auto;
}

.rule-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rule-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rule-list li i {
    color: var(--accent-blue);
    width: 16px;
}

.sync-status-box {
    animation: slideInDown 0.3s ease-out;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 비서 모드 — 최근 작업 이력 카드 (#syncHistory, secretary.js _appendHistory) */
.history-item {
    background: #f0fdf4;
    border: 1px solid rgba(34, 197, 94, 0.1);
    border-left: 4px solid var(--success);
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.badge-new {
    font-size: 0.7rem;
    background: var(--accent-purple);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 4px;
    font-weight: bold;
}

/* Secretary glass workspace — lavender collection, mint upload, champagne send. */
.main-layout:has(.sec-workspace) { background:#091424!important; }
.content-panel.secretary-bg:has(.sec-workspace) { padding:0; background:#091424; overflow:auto; scrollbar-width:thin; scrollbar-color:#62728f #0c192b; }
.top-nav.secretary-header:has(~.content-panel .sec-workspace) { background:linear-gradient(110deg,#14273b,#101a32)!important; border-bottom:1px solid #7a91b938!important; }
.main-layout:has(.sec-workspace) #btnSecretaryHelp,.main-layout:has(.sec-workspace) #btnBackupInfo { display:none!important; }
.secretary-container.sec-workspace { --sec-purple:#cab0ff; --sec-mint:#99ead6; --sec-gold:#f2d694; box-sizing:border-box; width:100%; max-width:none; margin:0; padding:24px 26px 28px; color:#eaf1ff; background:radial-gradient(ellipse at 70% 0%,#413b791f,transparent 52%),linear-gradient(140deg,#091826,#0b1424); animation:none; }
.sec-workspace *,.sec-send-modal * { box-sizing:border-box; }
.sec-workspace button,.sec-send-modal button { font:inherit; cursor:pointer; }
.sec-workspace button:disabled { opacity:.48; cursor:wait; filter:saturate(.4); }
.sec-workspace button:focus-visible,.sec-send-modal button:focus-visible,.sec-send-modal input:focus-visible,.sec-rules summary:focus-visible { outline:2px solid #e0ceff; outline-offset:4px; }
.sec-icon { display:inline-block; width:25px; height:25px; flex:0 0 auto; vertical-align:middle; }
.sec-hero { position:relative; display:flex; align-items:center; justify-content:space-between; min-height:204px; margin-bottom:18px; gap:20px; background:linear-gradient(90deg,#0a1726 1%,transparent 43%),url('../assets/secretary-glass-workspace.webp') right 85px center/auto 330px no-repeat; }
.sec-intro { z-index:1; min-width:0; }
.sec-eyebrow { color:#b9c6ed; letter-spacing:.15em; font-size:.82rem; margin:0 0 10px; }
.sec-hero h2 { font-size:clamp(1.8rem,2.7vw,2.9rem); letter-spacing:-.05em; line-height:1.3; font-weight:780; margin:0 0 12px; text-shadow:none; color:#f2f4ff; }
.sec-hero h2 span { color:#c9a8f3; }
.sec-subtitle { color:#b5c7e1; font-size:1rem; line-height:1.6; margin:0; }
.sec-utilities { display:flex; flex-direction:column; align-items:stretch; gap:8px; z-index:1; flex-shrink:0; }
.sec-utilities button,.sec-recheck { display:inline-flex; align-items:center; justify-content:center; gap:10px; color:#dce7fb; background:linear-gradient(145deg,#29445e91,#122339d9); border:1px solid #7f9abb99; border-radius:10px; padding:10px 15px; box-shadow:inset 0 1px 0 #ffffff24,0 5px 15px #0002; font-size:.85rem; }
.sec-utilities .sec-icon { width:22px; height:22px; }
.sec-agent-strip { display:flex; align-items:center; gap:12px; justify-content:space-between; padding:9px 12px 9px 18px; min-height:46px; margin-bottom:16px; border:1px solid #71afbd9c; border-radius:12px; background:linear-gradient(110deg,#173d46ac,#20364b9c); box-shadow:inset 0 1px 0 #defaff1f; }
.sec-workspace #agentStatus { display:flex; align-items:center; flex-wrap:wrap; gap:12px; min-width:0; padding:0; background:transparent!important; font-size:.88rem; }
.sec-status-dot { height:11px; width:11px; border-radius:50%; background:#f19caa; box-shadow:0 0 13px #ee8d9a77; }
#agentStatus[data-connected=true] .sec-status-dot { background:#79ead0; box-shadow:0 0 13px #79ead088; }
.sec-status-description { border-left:1px solid #8caac76e; padding-left:15px; color:#c2d1e8; font-weight:400; font-size:.82rem; }
.sec-recheck { padding:3px 12px; border-radius:20px; font-size:.73rem; white-space:nowrap; }
.sec-recheck .sec-icon { width:17px; height:17px; }
.sec-action-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:16px; }
.sec-action-card { --sec-accent:202,176,255; position:relative; display:flex; flex-direction:column; justify-content:space-between; gap:20px; padding:22px 18px 16px; min-height:190px; border:1px solid rgba(var(--sec-accent),.82); border-radius:13px; background:radial-gradient(ellipse at 5% 0%,rgba(var(--sec-accent),.19),transparent 75%),linear-gradient(135deg,#22293d,#121c2b); box-shadow:inset 0 1px 2px #fff5,0 0 12px rgba(var(--sec-accent),.13),0 9px 25px #0003; overflow:hidden; }
.sec-action-card:before { content:''; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:repeating-radial-gradient(ellipse at 120% 120%,transparent 0,transparent 11px,rgba(var(--sec-accent),.06) 12px,transparent 13px); mask-image:linear-gradient(100deg,transparent 38%,black); }
.sec-upload { --sec-accent:135,235,210; background:radial-gradient(ellipse at 5% 0%,#4bc1ac33,transparent 75%),linear-gradient(135deg,#173438,#112732); }
.sec-send { --sec-accent:242,214,148; background:radial-gradient(ellipse at 5% 0%,#cbb16d30,transparent 75%),linear-gradient(135deg,#33342f,#1c2530); }
.sec-card-heading { display:flex; align-items:center; gap:19px; position:relative; }
.sec-medallion { position:relative; display:inline-flex; align-items:center; justify-content:center; flex:0 0 auto; width:76px; height:76px; border:1px solid rgba(var(--sec-accent,242,214,148),.9); border-radius:50%; color:rgb(var(--sec-accent,242,214,148)); background:radial-gradient(ellipse at 25% 10%,#ffffff70,transparent 40%),linear-gradient(135deg,rgba(var(--sec-accent,242,214,148),.32),#101a2b99); box-shadow:inset 1px 1px 3px #fff6,inset -5px -5px 18px #060d1a88,0 0 21px rgba(var(--sec-accent,242,214,148),.2); }
.sec-medallion .sec-icon { width:39px; height:39px; filter:drop-shadow(0 0 6px currentColor); }
.sec-card-heading h3 { margin:0 0 9px; font-size:1.6rem; font-weight:750; letter-spacing:-.035em; color:#f2f4ff; text-shadow:none; }
.sec-card-heading p { margin:0; color:#c8d6e7; font-size:.83rem; line-height:1.5; word-break:keep-all; }
.sec-card-buttons { position:relative; display:flex; gap:10px; }
.sec-card-buttons button { display:flex; align-items:center; justify-content:center; gap:9px; flex:1; min-width:0; border:1px solid rgba(var(--sec-accent),.9); border-radius:10px; color:#f1eaff; padding:13px 7px; font-size:.96rem; font-weight:650; white-space:nowrap; background:linear-gradient(145deg,#6654a357,#292b4faa); box-shadow:inset 0 1px 1px #fff4,0 0 12px rgba(var(--sec-accent),.1); }
.sec-upload .sec-card-buttons button { color:#effffa; background:linear-gradient(155deg,#68dac4,#158a74 49%,#176252); text-shadow:0 1px 2px #115348; box-shadow:inset 0 1px 3px #cfffff,0 0 18px #72dfbd26; }
.sec-send .sec-card-buttons button { color:#fff7e5; background:linear-gradient(155deg,#ecdca8,#aa8b4e 56%,#695632); text-shadow:0 1px 2px #5a451f; box-shadow:inset 0 1px 3px #fff1c1,0 0 18px #e4c27822; }
.sec-stop-zone { position:absolute; top:0; right:0; z-index:2; padding:10px 10px 22px 40px; }
.sec-stop-collect { display:inline-flex; align-items:center; gap:5px; border:1px solid #f8717166; border-radius:8px; padding:4px 10px; color:#fca5a5; font-size:.74rem; font-weight:600; background:#3b0d12d9; transition:opacity .15s; }
.sec-stop-collect .sec-icon { width:13px; height:13px; }
.sec-stop-collect:disabled { opacity:.5 !important; cursor:wait; }
/* 평소엔 숨기고 버튼 주변(.sec-stop-zone)에 마우스가 오거나 키보드 포커스 시에만 표시 (마우스 없는 기기는 흐리게 상시 표시) */
@media (hover:hover) { .sec-stop-collect { opacity:0; } .sec-stop-zone:hover .sec-stop-collect, .sec-stop-collect:focus-visible { opacity:1; } }
@media (hover:none) { .sec-stop-collect { opacity:.6; } }
.sec-workspace button:hover:not(:disabled),.sec-send-modal button:hover { filter:brightness(1.12); }
.sec-sync-result { border:1px solid #7ed2c3bb; border-radius:12px; padding:13px 18px; margin:0 0 16px; background:linear-gradient(115deg,#17483e99,#163647b3); box-shadow:inset 0 1px 0 #bafff32a; color:#c9ede3; font-size:.9rem; }
.sec-progress-content { display:flex; align-items:center; gap:14px; line-height:1.65; }
.sec-workspace .spinner { flex-shrink:0; width:18px; height:18px; border-color:#7bdbcc33; border-top-color:#a1e9d6; }
.sec-lower-grid { display:grid; grid-template-columns:minmax(0,1.13fr) minmax(0,1fr); gap:16px; align-items:start; }
.sec-glass-panel { min-width:0; border:1px solid #7e9fc4a1; border-radius:13px; background:linear-gradient(140deg,#253d56b0,#111e32dd); padding:18px; box-shadow:inset 0 1px 2px #d4e1ff30,0 12px 28px #0002; }
.sec-glass-panel h3 { display:flex; align-items:center; gap:10px; font-size:1.08rem; color:#e8efff; margin:0 0 15px; text-shadow:none; font-weight:700; }
.sec-history h3 small { font-weight:400; color:#9cb0d1; font-size:.73rem; margin-left:7px; }
.sec-history #syncHistory.empty-state { padding:30px 12px; text-align:center; color:#9db1cc; background:none; }
.sec-history .empty-state p { margin:12px 0 7px; font-size:.87rem; }
.sec-history .empty-state small { font-size:.73rem; line-height:1.7; }
.sec-empty-icon .sec-icon { width:36px; height:36px; opacity:.5; }
.sec-history-row { display:flex; align-items:center; gap:13px; border-top:1px solid #7189a63b; min-height:78px; padding:12px 0; }
.sec-history-icon { display:flex; align-items:center; justify-content:center; flex-shrink:0; width:46px; height:46px; border:1px solid #7edfc8a6; border-radius:50%; color:#94e6d1; background:#23756627; box-shadow:inset 0 1px 0 #fff2; }
.sec-history-collect .sec-history-icon { color:#d1b4ff; border-color:#ba98e8; background:#71529422; }
.sec-history-analysis .sec-history-icon,.sec-history-send .sec-history-icon { color:#f0d393; border-color:#e2c47e; background:#ad8a3f22; }
.sec-history-message { min-width:0; flex:1; }
.sec-history-message strong { font-size:.86rem; font-weight:650; }
.sec-history-message p { font-size:.74rem; color:#aabed9; margin:5px 0 0; line-height:1.5; overflow-wrap:anywhere; }
.sec-complete-badge { color:#a1e5d0; background:#267a652b; border:1px solid #68b7a3; padding:3px 10px; border-radius:20px; font-size:.7rem; }
.sec-history-row time { color:#9fb2d1; font-size:.77rem; white-space:nowrap; }
.sec-tools { display:flex; flex-direction:column; gap:13px; }
.sec-analysis { display:flex; align-items:center; gap:15px; padding:17px; }
.sec-chart-medallion { display:flex; align-items:center; justify-content:center; width:58px; height:58px; flex-shrink:0; color:#c7b0ff; border:1px solid #ac9bd8; border-radius:14px; background:radial-gradient(ellipse at 10% 0%,#c1a7ff55,transparent 65%),linear-gradient(135deg,#4b487d88,#18263b); box-shadow:inset 0 1px 1px #fff5; }
.sec-chart-medallion .sec-icon { width:33px; height:33px; filter:drop-shadow(0 0 4px #b6a5ff88); }
.sec-analysis>div { flex:1; min-width:0; }
.sec-analysis h3 { margin:0 0 5px; }
.sec-analysis p { margin:0; font-size:.77rem; color:#acbfd9; }
.sec-analysis button { display:flex; align-items:center; gap:5px; border:1px solid #c1b0ff; border-radius:10px; color:#e4dcff; padding:11px 12px; background:linear-gradient(140deg,#6258a6a6,#292c62); font-size:.79rem; white-space:nowrap; box-shadow:inset 0 1px 1px #fff4; }
.sec-analysis button .sec-icon { width:16px; height:16px; }
.sec-guide h3 { margin-bottom:12px; }
.sec-path { display:flex; align-items:flex-start; gap:10px; padding:12px; border:1px solid #7594b877; border-radius:9px; background:#0e223c88; }
.sec-path .sec-icon { width:20px; height:20px; color:#b6c8ea; }
.sec-path>div { min-width:0; }
.sec-path code { color:#cbd8f1; font-family:inherit; font-size:.82rem; overflow-wrap:anywhere; }
.sec-path p,.sec-rules p { font-size:.74rem; line-height:1.6; margin:5px 0 0; color:#a3b9d6; }
.sec-rules { margin-top:13px; }
.sec-rules summary { display:flex; align-items:center; gap:9px; list-style:none; cursor:pointer; font-size:.83rem; color:#ccd7eb; }
.sec-rules summary::-webkit-details-marker { display:none; }
.sec-rules summary:after { content:'⌄'; margin-left:auto; }
.sec-rules[open] summary:after { content:'⌃'; }
.sec-rule-chips { display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.sec-rule-chips span { border:1px solid #9f8dcd99; border-radius:20px; padding:4px 9px; color:#c9c4e9; background:#7a65961c; font-size:.72rem; }
.sec-workspace #agentGuide { margin:0 0 18px!important; }
.sec-workspace #agentGuide .info-card { color:#dce5f6; background:#453c2538!important; border:1px solid #cfaf7166!important; box-shadow:none; }
.sec-workspace #agentGuide ol { font-size:.82rem; }
/* Bulk send dialog keeps the existing selection and payload. */
.sec-modal-overlay { position:fixed; inset:0; z-index:9999; display:flex; align-items:center; justify-content:center; padding:24px; background:#020919a6; backdrop-filter:blur(7px); }
.sec-send-modal { position:relative; width:min(780px,100%); max-height:calc(100dvh - 48px); overflow-y:auto; padding:30px; border:1px solid #d1c2f2; border-radius:20px; color:#edf1ff; background:radial-gradient(ellipse at 15% 0%,#7668bd33,transparent 65%),linear-gradient(135deg,#26344bea,#111e30fa); box-shadow:inset 0 1px 2px #fff8,0 0 20px #ad98d52b,0 30px 90px #0008; scrollbar-width:thin; }
.sec-modal-close { position:absolute; right:22px; top:22px; border:0; background:transparent; color:#c8ceec; padding:3px; }
.sec-modal-header { display:flex; align-items:center; gap:22px; margin-bottom:28px; padding-right:24px; }
.sec-modal-header .sec-medallion { width:72px; height:72px; }
.sec-modal-header h2 { font-size:1.85rem; letter-spacing:-.035em; margin:0 0 8px; color:#f5f6ff; font-weight:750; }
.sec-modal-header p { margin:0; font-size:1rem; color:#c3d1ed; }
.sec-send-options { display:grid; grid-template-columns:1fr 1fr; gap:15px; margin-bottom:28px; }
.sec-send-option { position:relative; display:flex; align-items:center; justify-content:center; gap:17px; min-height:162px; padding:29px 17px 22px; border:1px solid #9182b9; border-radius:13px; cursor:pointer; background:radial-gradient(ellipse at 15% 0%,#8d6be844,transparent 70%),linear-gradient(140deg,#202b43,#14243b); box-shadow:inset 0 1px 1px #fff3; }
.sec-send-option:has(input:checked) { border-color:#d1b3ff; box-shadow:inset 0 1px 2px #fff6,0 0 15px #a084e82b; background:radial-gradient(ellipse at 15% 0%,#8d6be866,transparent 70%),linear-gradient(140deg,#33345e,#14243b); }
.sec-option-upload { background:radial-gradient(ellipse at 15% 0%,#b69c6333,transparent 70%),linear-gradient(140deg,#2d3240,#182638); border-color:#a2916b; }
.sec-option-upload:has(input:checked) { background:radial-gradient(ellipse at 20% 0%,#d7be7640,transparent 70%),linear-gradient(140deg,#403c3d,#1d2938); border-color:#f3dda4; box-shadow:inset 0 1px 2px #fff8,0 0 15px #e9c97e26; }
.sec-send-option input { position:absolute; left:17px; top:17px; appearance:none; width:23px; height:23px; margin:0; border:1px solid #cdb7f9; border-radius:50%; background:#111d33; cursor:pointer; }
.sec-send-option input:checked { background:radial-gradient(circle,#dbbaff 0 42%,#172035 48% 61%,#dbbaff 68%); box-shadow:0 0 10px #c3a6ff55; }
.sec-option-upload input { border-color:#eed29a; }
.sec-option-upload input:checked { background:radial-gradient(circle,#fff0bc 0 42%,#3e3828 48% 61%,#f1d897 68%); box-shadow:0 0 10px #f1d89755; }
.sec-option-art { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:84px; height:104px; color:#d9c8ff; border-radius:15px; background:radial-gradient(ellipse at 10% 0%,#eee4ff77,transparent 55%),linear-gradient(140deg,#a997f044,#27305277); border:1px solid #b8a6f8; box-shadow:inset 1px 1px 3px #fff8,inset -3px -3px 12px #544d8a88,0 0 18px #b29aff33; transform:perspective(350px) rotateY(-9deg) rotateZ(-4deg); }
.sec-option-art .sec-icon { width:57px; height:66px; stroke-width:1.25; filter:drop-shadow(0 0 4px currentColor); }
.sec-option-upload .sec-option-art { width:88px; height:76px; color:#f3e1b0; border-color:#d8bf86; background:radial-gradient(ellipse at 10% 0%,#fff3d177,transparent 55%),linear-gradient(140deg,#c7ac6144,#37364255); box-shadow:inset 1px 1px 3px #fff8,0 0 18px #dabf8433; }
.sec-option-upload .sec-option-art .sec-icon { width:65px; height:56px; }
.sec-send-option>span:last-child { display:flex; flex-direction:column; gap:12px; }
.sec-send-option strong { font-size:1.3rem; color:#f5f4ff; font-weight:700; white-space:nowrap; }
.sec-send-option>span:last-child>span { font-size:.85rem; color:#ccd6ed; line-height:1.65; word-break:keep-all; }
.sec-deadline-group { margin-bottom:23px; }
.sec-deadline-group label { display:flex; align-items:center; flex-wrap:wrap; gap:16px; font-size:1rem; margin-bottom:13px; font-weight:650; }
.sec-deadline-group small { color:#aebedb; font-size:.8rem; font-weight:400; }
.sec-deadline-input { display:flex; align-items:center; border:1px solid #9aafdd; border-radius:10px; padding:12px 17px; background:linear-gradient(130deg,#142337,#202e4699); box-shadow:inset 0 1px 1px #fff2; }
.sec-deadline-input .sec-icon { color:#d5dff5; margin-right:15px; padding-right:12px; box-sizing:content-box; border-right:1px solid #8d9dc466; }
.sec-deadline-input input { flex:1; min-width:0; color:#e7eefc; border:0; background:transparent; padding:4px; font:inherit; font-size:1rem; }
.sec-deadline-input input::placeholder { color:#899bb7; }
.sec-modal-note { display:flex; align-items:center; gap:10px; color:#aebfdc; font-size:.8rem; line-height:1.6; margin:0 0 10px; }
.sec-modal-footer { display:flex; justify-content:flex-end; gap:13px; margin-top:14px; }
.sec-modal-footer button { display:inline-flex; align-items:center; justify-content:center; gap:10px; border:1px solid #afa3df; padding:13px 25px; border-radius:12px; color:#e5e7ff; background:linear-gradient(140deg,#3e446b99,#19283e); box-shadow:inset 0 1px 1px #fff3; font-size:1rem; }
.sec-modal-footer #sendTypeConfirm { color:#fff9e8; font-weight:700; border-color:#f6dc9d; background:linear-gradient(150deg,#ebd9a2,#a58a53 57%,#6d593a); box-shadow:inset 0 1px 2px #fff9,0 0 18px #d9bd8126; text-shadow:0 1px 2px #6d5630; }
@media(max-width:1300px) { .sec-workspace {padding:20px;} .sec-hero {background-position:right 70px center;background-size:auto 280px;} .sec-card-heading {gap:12px;} .sec-medallion {width:60px;height:60px;} .sec-medallion .sec-icon {width:32px;height:32px;} .sec-card-heading h3 {font-size:1.4rem;} .sec-card-heading p {font-size:.76rem;} .sec-card-buttons button {font-size:.82rem;gap:7px;} .sec-card-buttons .sec-icon {width:21px;height:21px;} .sec-action-card {padding:18px 14px 14px;min-height:176px;} .sec-analysis {flex-wrap:wrap;} .sec-analysis button {margin-left:auto;} }
@media(max-width:1020px) { .sec-action-grid {gap:12px;} .sec-card-heading {flex-direction:column;align-items:flex-start;gap:12px;} .sec-action-card {min-height:240px;} .sec-lower-grid {grid-template-columns:1fr;} .sec-tools {display:grid;grid-template-columns:1fr 1fr;align-items:start;} .sec-hero {min-height:210px;background-position:right 60px center;background-size:auto 240px;} .sec-hero h2 {font-size:1.9rem;} .sec-subtitle {font-size:.88rem;max-width:80%;} }
@media(max-width:700px) { .secretary-container.sec-workspace {padding:20px 14px;} .sec-hero {flex-direction:column;align-items:stretch;background-position:right -100px top;background-size:auto 230px;min-height:270px;gap:20px;} .sec-intro {padding-top:6px;} .sec-hero h2 {font-size:1.8rem;max-width:100%;text-shadow:0 2px 10px #071223;} .sec-subtitle {max-width:90%;font-size:.85rem;} .sec-utilities {flex-direction:row;gap:6px;flex-wrap:wrap;} .sec-utilities button {padding:8px 10px;flex:1;font-size:.73rem;gap:6px;} .sec-utilities .sec-icon {width:17px;height:17px;} .sec-agent-strip {padding:10px;gap:8px;} .sec-workspace #agentStatus {font-size:.79rem;gap:8px;} .sec-status-description {border:0;padding:0;width:100%;font-size:.73rem;} .sec-action-grid {grid-template-columns:1fr;} .sec-card-heading {flex-direction:row;align-items:center;gap:18px;} .sec-action-card {min-height:174px;padding:20px 17px 16px;} .sec-medallion {width:64px;height:64px;} .sec-card-heading h3 {font-size:1.5rem;} .sec-card-heading p {font-size:.82rem;} .sec-card-buttons button {font-size:.93rem;} .sec-tools {display:flex;} .sec-analysis {flex-wrap:nowrap;} .sec-analysis button {font-size:.73rem;padding:9px;} .sec-analysis p {font-size:.7rem;} .sec-chart-medallion {width:45px;height:45px;} .sec-glass-panel {padding:15px;} .sec-history-row {gap:9px;} .sec-history-icon {width:35px;height:35px;} .sec-history-icon .sec-icon {width:22px;height:22px;} .sec-history-message strong {font-size:.8rem;} .sec-history-message p {font-size:.7rem;} .sec-complete-badge {display:none;} .sec-modal-overlay {padding:12px;} .sec-send-modal {padding:22px 18px;max-height:calc(100dvh - 24px);border-radius:16px;} .sec-modal-header {gap:12px;padding-right:10px;margin-bottom:22px;} .sec-modal-header .sec-medallion {width:48px;height:48px;} .sec-modal-header .sec-icon {width:25px;height:25px;} .sec-modal-header h2 {font-size:1.23rem;} .sec-modal-header p {font-size:.8rem;} .sec-modal-close {right:12px;top:10px;} .sec-modal-close .sec-icon {width:19px;height:19px;} .sec-send-options {gap:10px;margin-bottom:22px;} .sec-send-option {flex-direction:column;padding:30px 10px 17px;gap:12px;min-height:215px;} .sec-send-option strong {font-size:1.05rem;} .sec-send-option>span:last-child {gap:7px;} .sec-send-option>span:last-child>span {font-size:.73rem;} .sec-option-art {width:58px;height:72px;} .sec-option-art .sec-icon {width:41px;height:46px;} .sec-option-upload .sec-option-art {width:65px;height:52px;} .sec-option-upload .sec-option-art .sec-icon {width:44px;height:40px;} .sec-send-option input {left:10px;top:10px;width:18px;height:18px;} .sec-deadline-group label {font-size:.9rem;gap:6px;} .sec-deadline-group small {font-size:.71rem;} .sec-deadline-input {padding:10px;} .sec-deadline-input input {font-size:.9rem;} .sec-modal-note {font-size:.72rem;} .sec-modal-footer button {padding:11px 18px;font-size:.9rem;} }
@media(prefers-reduced-motion:reduce) { .sec-workspace .spinner {animation:none;} }
.sec-workspace .sec-hero { background-size:auto 245px; }
.sec-send-modal { width:min(860px,100%); padding:34px; }
.sec-modal-header h2 { font-size:2rem; }
.sec-send-option { min-height:177px; gap:20px; }
.sec-send-option strong { font-size:1.45rem; }
.sec-send-option>span:last-child>span { font-size:.94rem; }
.sec-deadline-input:focus-within { border-color:#e0ceff; box-shadow:0 0 0 2px #c3afff33; }
.sec-deadline-input input:focus-visible { outline:none; }
@media(max-width:700px) { .sec-workspace .sec-hero { background-image:linear-gradient(90deg,#0a1726e6,#0a1726b3 65%,#0a172630),url('../assets/secretary-glass-workspace.webp');background-size:auto 240px;background-position:right -110px top;} .sec-send-modal {padding:22px 18px;} .sec-modal-header h2 {font-size:1.23rem;} .sec-send-option {min-height:215px;gap:12px;} .sec-send-option strong {font-size:1.05rem;} .sec-send-option>span:last-child>span {font-size:.73rem;} }
.sec-workspace,.sec-send-modal { text-shadow:none; }
.sec-rules summary { flex-wrap:wrap; }
.sec-rule-overview { display:inline-flex; flex-wrap:wrap; gap:5px; margin-left:auto; }
.sec-rule-overview>span { padding:3px 8px; border:1px solid #9f8dcd99; border-radius:20px; color:#d0c4ed; font-size:.67rem; background:#65548522; }
.sec-rule-overview>span:first-child { border-color:#c4aa75; color:#e3d19b; }
.sec-rule-overview>span:nth-child(4) { border-color:#77b6a4; color:#b3e4d5; }
.sec-rules summary:after { margin-left:0; }
@media(max-width:700px) { .sec-rule-overview {width:100%;margin:5px 0 0;} .sec-rules summary:after {display:none;} }
@media(min-width:1301px) {
    .sec-card-heading h3 {font-size:1.8rem;}
    .sec-card-heading p {font-size:.94rem;}
    .sec-card-buttons button {font-size:1.05rem;}
    .sec-action-card {min-height:196px;}
    .sec-glass-panel h3 {font-size:1.18rem;}
    .sec-history-message strong {font-size:.96rem;}
    .sec-history-message p {font-size:.83rem;}
    .sec-analysis p {font-size:.84rem;}
    .sec-analysis button {font-size:.85rem;}
    .sec-path code {font-size:.9rem;}
}
/* Blend the hero artwork into the workspace instead of displaying its canvas. */
.sec-workspace .sec-hero {
    isolation:isolate;
    background:none;
}
.sec-workspace .sec-hero::before {
    content:'';
    position:absolute;
    inset:-18px 70px -12px 24%;
    z-index:-1;
    pointer-events:none;
    background:url('../assets/secretary-glass-workspace.webp') right center / auto 260px no-repeat;
    mix-blend-mode:screen;
    opacity:.9;
    -webkit-mask-image:linear-gradient(90deg,transparent,black 22%,black 94%,transparent),linear-gradient(180deg,transparent,black 16%,black 78%,transparent);
    mask-image:linear-gradient(90deg,transparent,black 22%,black 94%,transparent),linear-gradient(180deg,transparent,black 16%,black 78%,transparent);
    -webkit-mask-composite:source-in;
    mask-composite:intersect;
}
@media(max-width:700px) {
    .sec-workspace .sec-hero::before {
        inset:-8px -12px 35px 5%;
        background-position:right -100px top;
        background-size:auto 235px;
        opacity:.48;
        -webkit-mask-image:linear-gradient(90deg,transparent,black 55%,black 93%,transparent),linear-gradient(180deg,transparent,black 14%,black 68%,transparent);
        mask-image:linear-gradient(90deg,transparent,black 55%,black 93%,transparent),linear-gradient(180deg,transparent,black 14%,black 68%,transparent);
    }
}
@media(min-width:701px) {
    .sec-workspace .sec-hero::before {
        inset:-32px 195px -18px 12%;
        background-position:right center;
        background-size:auto 340px;
        opacity:.95;
    }
}
@media(min-width:701px) and (max-width:1100px) {
    .sec-workspace .sec-hero::before {
        right:125px;
        left:4%;
        background-size:auto 300px;
        opacity:.72;
    }
}
@media(min-width:1101px) {
    .sec-workspace .sec-hero::before { background-position:right calc(50% + 22px); }
}
