.drive-page{max-width:800px;margin:auto;padding:28px 20px 90px}.drive-page .inset-card{padding:24px;margin:20px 0}.drive-page h1{margin:20px 0}.drive-page h2{font-size:22px;margin:0 0 16px}.drive-page p{overflow-wrap:anywhere}.drive-choice{display:flex;gap:12px;padding:16px 0;align-items:flex-start}.drive-choice input{width:20px;height:20px;flex:0 0 20px;margin-top:2px}.drive-choice span{display:grid;gap:8px;min-width:0}.drive-choice small{font-size:15px;line-height:1.5;color:var(--muted)}.drive-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:16px 0}.drive-notice{border:1px solid var(--hairline);border-radius:var(--r-md);padding:16px;color:var(--danger);overflow-wrap:anywhere}.cv-source{display:grid;gap:12px;width:100%;padding:12px 0}.cv-source label{display:grid;gap:8px;min-width:0}.cv-source .select{max-width:100%;width:100%}.cv-source-link{display:block;margin:12px 0}.drive-page a:focus-visible,.drive-page button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}@media(max-width:734px){.drive-page .inset-card{padding:20px}.drive-actions>*{max-width:100%}}

.inset-row:has(.cv-source){flex-wrap:wrap}.inset-row .cv-source{flex-basis:100%}.cv-replace-form:has(.cv-source){display:flex;flex-wrap:wrap;gap:12px}

.drive-page .settings-return { display:inline-flex; align-items:center; gap:4px; min-height:32px; text-decoration:none; }
.drive-page .settings-return .icon { display:block; width:16px; height:16px; flex:none; }
.drive-page .drive-heading { display:flex; align-items:center; gap:10px; }
.drive-logo { display:block; flex:none; object-fit:contain; }
.drive-status { display:inline-block; width:10px; height:10px; border-radius:50%; flex:none; animation:drive-status-pulse 2.6s ease-in-out infinite; }
.drive-status--green { background:var(--apple-green); }
.drive-status--orange { background:var(--apple-orange); }
.drive-status--red { background:var(--apple-red); }
@keyframes drive-status-pulse { 0%,100% { opacity:1; } 50% { opacity:.45; } }
@media(prefers-reduced-motion:reduce) { .drive-status { animation:none; } }

/* App-rendered CV choices share JAMT tokens and keyboard focus behavior. */
.cv-field { min-width:0; display:grid; gap:8px; }
.cv-field-label { font-size:13px; font-weight:600; color:var(--muted); }
.cv-select { position:relative; min-width:0; }
.cv-select summary { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; padding:10px 12px; border:1px solid var(--hairline); border-radius:var(--r-md); background:var(--card-high); color:var(--ink); cursor:pointer; list-style:none; font-size:16px; }
.cv-select summary::-webkit-details-marker,.drive-folder-settings summary::-webkit-details-marker { display:none; }
.cv-select summary:focus-visible,.cv-choice-options button:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
[data-choice-current] { display:flex; align-items:center; gap:10px; min-width:0; }
[data-choice-label] { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.cv-choice-icon { display:inline-flex; align-items:center; flex:none; color:var(--muted); }
.cv-choice-icon .icon,.cv-choice-icon img { width:20px; height:20px; display:block; }
.cv-choice-chevron { width:16px; height:16px; flex:none; color:var(--muted); }
.cv-choice-options { position:absolute; top:calc(100% + 6px); inset-inline:0; z-index:30; max-height:240px; overflow:auto; padding:6px; background:var(--card); border:1px solid var(--hairline); border-radius:var(--r-md); box-shadow:0 8px 24px rgba(0,0,0,.15); }
.cv-select--above .cv-choice-options { top:auto; bottom:calc(100% + 6px); }
.cv-choice-options button { display:flex; align-items:center; gap:10px; width:100%; min-height:44px; padding:10px; border:0; border-radius:8px; font:inherit; color:var(--ink); background:transparent; text-align:start; cursor:pointer; }
.cv-choice-options button:hover,.cv-choice-options button[aria-selected="true"] { background:var(--hover-bg); }
.cv-choice-check { width:18px; height:18px; margin-inline-start:auto; color:var(--blue); opacity:0; flex:none; }
.cv-choice-options button[aria-selected="true"] .cv-choice-check { opacity:1; }
.drive-info-notice { display:flex; gap:10px; padding:14px; margin-top:16px; border-radius:var(--r-md); background:var(--seg-bg); color:var(--muted); font-size:13px; line-height:1.5; }
.drive-info-notice>.icon { width:18px; height:18px; flex:none; margin-top:1px; }
.drive-info-notice p { margin:0; }.drive-info-notice p+p { margin-top:6px; }
.drive-matching-choice { display:inline-flex; align-items:center; gap:8px; cursor:pointer; min-height:44px; font-size:14px; }
.drive-apple-check { appearance:none; -webkit-appearance:none; width:22px; height:22px; flex:none; margin:0; padding:0; border:1px solid var(--hairline); border-radius:6px; background:var(--seg-bg); cursor:pointer; position:relative; }
.drive-apple-check:checked { background:var(--blue); border-color:var(--blue); }
.drive-apple-check:checked::after { content:''; position:absolute; left:7px; top:3px; width:6px; height:11px; border:solid white; border-width:0 2px 2px 0; transform:rotate(45deg); }
.drive-apple-check:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.drive-folder-settings>summary { display:flex; justify-content:space-between; align-items:center; gap:12px; cursor:pointer; list-style:none; }
.drive-folder-settings>summary h2 { margin:0; }
.drive-folder-settings>summary>.icon { width:20px; height:20px; flex:none; color:var(--muted); }
.drive-folder-settings[open]>summary>.icon { transform:rotate(180deg); }
.drive-folder-settings[open]>summary { margin-bottom:16px; }
.drive-folder-settings .drive-actions>.cv-field { flex:1; min-width:160px; }
.drive-folder-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.drive-folder-actions .btn { min-width:0; min-height:44px; height:auto; padding-inline:12px; white-space:normal; text-align:center; }
@media(max-width:734px) { .drive-folder-actions { width:100%; } }
.cv-source{gap:8px}.cv-source [data-drive-cv-field][hidden]{display:none}.cv-source .cv-field-label.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.drive-picker-button{display:inline-flex;align-items:center;gap:8px;min-height:40px;height:40px;padding:0 14px;border-radius:var(--r-md);font-size:15px;margin:0 0 8px}.drive-picker-button .icon{width:18px;height:18px}
.drive-cv-spinner{width:20px;height:20px;border:2px solid var(--hairline);border-top-color:var(--blue);border-right-color:var(--blue);border-radius:50%;animation:drive-cv-spin .8s linear infinite;flex:none}.drive-cv-spinner[hidden]{display:none}.drive-page [aria-busy="true"]{cursor:progress}@keyframes drive-cv-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.drive-cv-spinner{animation-duration:2s}}

/* Per-format file badges: solid format colors and white letters. */
.cv-format { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 3px; flex:none; border-radius:6px; background:var(--card); border:1px solid var(--hairline); font-size:8px; font-weight:800; letter-spacing:.02em; line-height:1; }
.cv-format[data-format="pdf"] { color:#fff; border-color:#C93626; background:#C93626; }
.cv-format[data-format="doc"],.cv-format[data-format="docx"] { color:#fff; border-color:#1B65C9; background:#1B65C9; }
.cv-format[data-format="gdoc"] { color:#fff; border-color:#167A3B; background:#167A3B; }
.matching-drive-cv { position:relative; width:100%; min-width:0; }
.matching-drive-cv .cv-field-label.sr-only,.attached-cv-picker .cv-field-label.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.matching-drive-cv .cv-select>summary { color:var(--blue); border-color:var(--blue); border-radius:var(--button-radius-standard); }
.matching-drive-cv>.drive-cv-spinner { position:absolute; inset-inline-end:36px; top:12px; }
.matching-drive-cv[aria-busy="true"] summary { pointer-events:none; opacity:.6; }
.matching-drive-connect { width:100%; display:flex; align-items:center; justify-content:center; gap:8px; margin-top:8px; }
.matching-drive-connect img { flex:none; }
.cv-choice-empty { padding:8px; margin:0; }
.existing-cv-controls>.cv-field,.attached-cv-picker>.cv-field { flex:1; min-width:0; }
.skill-profile-page .cv-card-actions { flex-direction:column; align-items:stretch; }
.profile-phone-only>.matching-drive-cv { margin-top:8px; }

/* Job detail CV panel: one file card on top, upload + Drive actions below. */
.cv-panel { margin-top:10px; border:1px solid var(--hairline-soft); border-radius:14px; background:var(--card-high); padding:14px; display:grid; gap:12px; min-width:0; }
.cv-file { display:flex; align-items:center; gap:12px; min-width:0; }
.cv-file-icon { position:relative; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; flex:none; border-radius:12px; background:var(--cv-accent-bg); border:1px solid var(--cv-accent-border); color:var(--cv-accent); }
.cv-file-icon .icon { width:22px; height:22px; }
.cv-file-icon img { width:22px; height:22px; display:block; }
.cv-file-icon.is-drive { background:var(--card); }
.cv-live-dot { position:absolute; right:-2px; bottom:-2px; width:12px; height:12px; border-radius:50%; background:var(--apple-green); border:2px solid var(--card-high); }
.cv-live-dot.is-stale { background:var(--apple-orange); }
.cv-file-text { display:grid; gap:2px; min-width:0; flex:1; }
.cv-file-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; font-size:15px; font-weight:600; letter-spacing:-0.01em; color:var(--ink); }
.cv-file.is-empty .cv-file-name { color:var(--muted); font-weight:500; }
.cv-file-sub { font-size:12.5px; line-height:1.45; color:var(--muted); overflow-wrap:anywhere; }
.cv-panel .btn-icon { flex:none; }
.cv-panel-sep { height:1px; background:var(--hairline-soft); }
.cv-panel .cv-form { display:grid; gap:10px; }
.cv-panel .cv-source { padding:0; }
.cv-upload[aria-busy="true"] .cv-upload-field { opacity:.75; }
.cv-upload-progress { margin:8px 0; }
.cv-upload[aria-busy="true"] .cv-upload-action,.cv-upload[aria-busy="true"] .cv-upload-clear { display:none; }
form[aria-busy="true"] [data-cv-upload],form[aria-busy="true"] .cv-source,form[aria-busy="true"] [data-cv-pending-submit] { pointer-events:none; }
form[aria-busy="true"] [data-cv-pending-submit] { opacity:.65; cursor:progress; }
.cv-drive-link { display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:8px 12px; border-radius:10px; color:var(--blue); font-size:14px; font-weight:500; text-decoration:none; width:fit-content; max-width:100%; }
.cv-drive-link img { flex:none; }
.cv-drive-link span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cv-drive-link .icon { width:14px; height:14px; flex:none; }
.cv-drive-link:hover { background:var(--cv-accent-bg); }
.cv-drive-link:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
@media(max-width:560px) {
  .cv-file { flex-wrap:wrap; }
}

.drive-folder-empty-actions { gap:12px; margin-top:16px; }
.drive-folder-empty-actions form { margin:0; }
.drive-picker-grant { margin-top: var(--space-3); }
