*{box-sizing:border-box}html,body{height:100%}body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;color:#111;background:#f6f7fb}
.header{padding:14px 18px;border-bottom:1px solid #e6e7ee;background:#fff;display:flex;gap:12px;align-items:baseline;flex-wrap:wrap}
.header__title{font-size:18px;font-weight:700}
.header__subtitle{font-size:12px;color:#444}
.accent{letter-spacing:.2px}
.layout{display:grid;grid-template-columns:360px 1fr;gap:12px;padding:12px;height:calc(100% - 52px)}
@media (max-width: 980px){.layout{grid-template-columns:1fr;grid-template-rows:auto 1fr}}
.panel{background:#fff;border:1px solid #e6e7ee;border-radius:14px;padding:12px;box-shadow:0 10px 25px rgba(0,0,0,.04);overflow:auto}
.panel__section{margin-bottom:10px}
.panel__label{font-size:12px;font-weight:700;margin-bottom:6px;color:#222}
.panel__hint{font-size:12px;color:#444;line-height:1.35}
.panel__row{display:flex;gap:8px;align-items:center;margin-top:8px}
.panel__hr{border:0;border-top:1px solid #eee;margin:12px 0}
input,select,textarea{width:100%;border:1px solid #d9dbe7;border-radius:10px;padding:10px 10px;font-size:14px;background:#fff}
textarea{resize:vertical}
.btn{border:1px solid #d9dbe7;background:#fff;border-radius:12px;padding:10px 12px;font-size:13px;cursor:pointer}
.btn:hover{background:#fafbff}
.btn--primary{background:#111;color:#fff;border-color:#111}
.btn--primary:hover{background:#000}
.photoGallery{margin-top:8px;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}
.photoEmpty{font-size:12px;color:#555;padding:8px;border:1px dashed #d9dbe7;border-radius:10px;background:#fafbff}
.photoCard{display:flex;flex-direction:column;gap:6px;padding:6px;border:1px solid #e6e7ee;border-radius:10px;background:#fff}
.photoCard__img{width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:8px;border:1px solid #ececf4}
.photoCard__meta{font-size:11px;line-height:1.25;color:#333;word-break:break-word}
.photoCard__delete{padding:6px 8px;font-size:11px}
.bookPhotoCatalog{margin-top:8px;display:flex;flex-direction:column;gap:8px}
.bookPhotoCatalog__heading{font-size:13px;font-weight:700;color:#1a2335}
.bookPhotoCatalog__note{font-size:12px;line-height:1.35;color:#536079}
.bookPhotoGrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(132px,1fr));gap:8px}
.bookPhotoCard{display:flex;flex-direction:column;gap:6px;padding:6px;border:1px solid #e6e7ee;border-radius:8px;background:#fff;color:inherit;text-decoration:none}
.bookPhotoCard:hover{background:#fafbff;border-color:#cfdcf5}
.bookPhotoCard__img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:6px;border:1px solid #ececf4;background:#f7f7f7}
.bookPhotoCard__title{font-size:11px;font-weight:700;line-height:1.25;color:#1f3257;word-break:break-word}
.bookPhotoCard__caption{font-size:11px;line-height:1.3;color:#333}
.bookPhotoCard__confidence{align-self:flex-start;border-radius:999px;padding:2px 7px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;border:1px solid #d9dbe7;color:#536079;background:#f7f8fc}
.bookPhotoCard__confidence--high{border-color:#b8dfc5;color:#1f6b3c;background:#e8f6ee}
.bookPhotoCard__confidence--medium{border-color:#d8e3fa;color:#2b4f88;background:#eef4ff}
.bookPhotoCard__confidence--low{border-color:#ead4a7;color:#76530f;background:#fff8e8}
.canvasWrap{position:relative;background:#fff;border:1px solid #e6e7ee;border-radius:14px;box-shadow:0 10px 25px rgba(0,0,0,.04);overflow:hidden}
.canvas{height:100%;min-height:640px}
.legend{position:absolute;left:10px;bottom:10px;display:flex;gap:12px;flex-wrap:wrap;background:rgba(255,255,255,.86);border:1px solid #eee;border-radius:12px;padding:8px 10px;font-size:12px}
.dot{display:inline-block;width:10px;height:10px;border-radius:999px;margin-right:6px;vertical-align:middle}
.dot--crew{background:#2b6cb0}
.dot--interp{background:#2f855a}
.dot--lead{background:#805ad5}

.panel__label--row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.timelineSummary{font-size:11px;font-weight:600;color:#2b6cb0;background:#eef4ff;border:1px solid #c9dbff;border-radius:999px;padding:3px 8px;white-space:nowrap}
.timelineTableWrap{margin-top:6px;border:1px solid #e6e7ee;border-radius:12px;overflow:auto;background:#f9fbff}
.timelineTable{width:100%;min-width:620px;border-collapse:separate;border-spacing:0;font-size:12px;color:#1a2335}
.timelineTable th{position:sticky;top:0;z-index:1;background:linear-gradient(180deg,#f4f8ff 0%,#eef4ff 100%);text-align:left;padding:10px 12px;border-bottom:1px solid #d8e3fa;font-size:11px;letter-spacing:.04em;text-transform:uppercase;color:#475879}
.timelineTable td{padding:10px 12px;border-bottom:1px solid #e5ebf8;vertical-align:middle;background:#fff}
.timelineTable tbody tr:last-child td{border-bottom:0}
.timelineTable tbody tr:hover td{background:#f5f9ff}
.timelineTable tbody tr.is-active td{background:#edf4ff}
.timelineQuarterBtn{border:1px solid #cfdcf5;background:#fff;border-radius:9px;padding:6px 8px;font-size:12px;font-weight:600;color:#1f3257;cursor:pointer}
.timelineQuarterBtn:hover{background:#f3f7ff}
.timelineTable tbody tr.is-active .timelineQuarterBtn{border-color:#8fb1ed;background:#dce9ff;color:#17366b}
.timelineSketch{max-width:300px;line-height:1.35;color:#2d3a55}
.timelineSketch--empty{color:#7c879f;font-style:italic}
.timelinePhotoCount{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:24px;padding:0 9px;border-radius:999px;background:#e8f6ee;border:1px solid #b8dfc5;color:#1f6b3c;font-weight:700}
.timelineIllo{width:28px;height:28px;display:block}
.timelineIlloWrap{display:flex;align-items:center;gap:8px;color:#4a5875}

@media (max-width: 980px){
  .timelineTable{min-width:520px}
  .timelineSketch{max-width:220px}
}

.appHeader{justify-content:space-between;align-items:center;min-height:64px}
.authBar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-left:auto}
.authStatus{font-size:12px;color:#4c5566;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.authBar__logout{padding:9px 11px}
.appleSignInButton{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:180px;min-height:38px;padding:8px 14px;border-radius:10px;background:#111;color:#fff;border:1px solid #111;text-decoration:none;font-size:14px;font-weight:700;line-height:1}
.appleSignInButton:hover{background:#000}
.appleSignInButton__mark{font-size:18px;line-height:1}
.accessGate{min-height:calc(100vh - 65px);display:grid;place-items:center;padding:28px;background:#f5f6f8}
.accessGate__content{width:min(720px,100%);padding:30px;border:1px solid #e0e2e8;border-radius:8px;background:#fff;box-shadow:0 16px 40px rgba(23,29,40,.08)}
.accessGate h1{margin:4px 0 10px;font-size:34px;line-height:1.08;letter-spacing:0;color:#15171b}
.accessGate p{margin:0;color:#4a5160;line-height:1.5}
.accessGate__actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:22px 0 12px}
.appleSignInButton--gate{min-width:210px;min-height:44px}
.accessGate__note{font-size:12px}
.accountManager{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:24px;z-index:50}
.accountManager__sheet{width:min(980px,100%);max-height:min(86vh,860px);overflow:hidden;background:#0b0f17;color:#e5e7eb;border:1px solid rgba(255,255,255,.12);border-radius:8px;box-shadow:0 24px 80px rgba(0,0,0,.45);display:flex;flex-direction:column}
.accountManager__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
.accountManager__actions{display:flex;gap:10px;align-items:center}
.accountManager__body{padding:12px 18px 18px;overflow:auto;flex:1;min-height:0}
.accountManager__row{display:flex;gap:10px;align-items:center;margin-bottom:12px}
.accountManager__list{display:grid;gap:10px}
.accountManager__notice{padding:10px 12px;border-radius:8px;border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:rgba(229,231,235,.78);font-size:13px;line-height:1.4}
.toolsPanel{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:24px;z-index:51}
.toolsPanel[hidden]{display:none!important}
.toolsPanel__sheet{width:min(860px,100%);max-height:min(86vh,860px);overflow:hidden;background:#0b0f17;color:#e5e7eb;border:1px solid rgba(255,255,255,.12);border-radius:8px;box-shadow:0 24px 80px rgba(0,0,0,.45);display:flex;flex-direction:column}
.toolsPanel__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
.toolsPanel__actions{display:flex;gap:10px;align-items:center}
.toolsPanel__body{padding:12px 18px 18px;overflow:auto;flex:1;min-height:0}
.toolsPanel__note{padding:10px 12px;border-radius:8px;border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:rgba(229,231,235,.78);font-size:13px;line-height:1.4;margin-bottom:12px}
.toolsPanel__list{display:grid;gap:10px}
.toolCard{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.toolCard__meta{display:grid;gap:4px}
.toolCard__title{font-weight:800}
.toolCard__cmd{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;color:rgba(229,231,235,.82);word-break:break-word}
.toolCard__actions{display:grid;gap:8px;align-content:start}
.btn--ghost{background:transparent;border:1px solid rgba(255,255,255,.2);color:#e5e7eb}
.btn--ghost:hover{background:rgba(255,255,255,.06)}
.proposalPanel{position:fixed;inset:0;background:rgba(0,0,0,.55);display:grid;place-items:center;padding:24px;z-index:52}
.proposalPanel[hidden]{display:none!important}
.proposalPanel__sheet{width:min(980px,100%);max-height:min(90vh,900px);overflow:hidden;background:#0b0f17;color:#e5e7eb;border:1px solid rgba(255,255,255,.12);border-radius:8px;box-shadow:0 24px 80px rgba(0,0,0,.45);display:flex;flex-direction:column}
.proposalPanel__head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:18px 18px 10px;border-bottom:1px solid rgba(255,255,255,.1)}
.proposalPanel__actions{display:flex;gap:10px;align-items:center}
.proposalPanel__body{padding:12px 18px 18px;overflow:auto;display:grid;gap:12px;flex:1;min-height:0}
.proposalPanel__notice{padding:10px 12px;border-radius:8px;border:1px dashed rgba(255,255,255,.18);background:rgba(255,255,255,.04);color:rgba(229,231,235,.78);font-size:13px;line-height:1.4}
.proposalPanel__compose{display:grid;gap:8px;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03)}
.proposalPanel__compose textarea{width:100%;min-height:220px;border-radius:10px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.25);color:#e5e7eb;padding:10px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;line-height:1.5}
.proposalPanel__composeActions{display:flex;justify-content:flex-end}
.proposalPanel__list{display:grid;gap:10px}
.proposalCard{display:grid;gap:8px;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.proposalCard__head{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.proposalChip{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#e5e7eb}
.proposalChip--pending{border-color:rgba(251,146,60,.6);background:rgba(251,146,60,.1);color:#fdba74}
.proposalChip--accepted{border-color:rgba(52,211,153,.45);background:rgba(16,185,129,.12);color:#6ee7b7}
.proposalChip--rejected{border-color:rgba(248,113,113,.55);background:rgba(248,113,113,.12);color:#fecaca}
.proposalChip--modified{border-color:rgba(96,165,250,.55);background:rgba(96,165,250,.12);color:#bfdbfe}
.proposalCard__meta{color:rgba(229,231,235,.82);font-size:13px}
.proposalCard__cmd{white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;line-height:1.5;color:rgba(229,231,235,.86);background:rgba(0,0,0,.22);border:1px solid rgba(255,255,255,.12);border-radius:10px;padding:10px 12px}
.proposalCard__actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.reservationList{display:grid;gap:8px;margin-bottom:12px}
.reservationItem{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 12px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.03)}
.reservationEmail{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;color:rgba(229,231,235,.86);word-break:break-all}
.accountCard{display:grid;grid-template-columns:1fr auto;gap:12px;padding:12px;border-radius:8px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04)}
.accountCard__meta{display:grid;gap:4px}
.accountCard__title{display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}
.accountChip{display:inline-flex;align-items:center;gap:6px;font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.06);color:#e5e7eb}
.accountChip--pending{border-color:rgba(251,146,60,.6);background:rgba(251,146,60,.1);color:#fdba74}
.accountChip--active{border-color:rgba(52,211,153,.45);background:rgba(16,185,129,.12);color:#6ee7b7}
.accountCard__sub{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:12px;color:rgba(229,231,235,.75);word-break:break-all}
.accountCard__detail{display:flex;gap:10px;flex-wrap:wrap;color:rgba(229,231,235,.82);font-size:13px}
.accountCard__actions{display:grid;gap:8px;align-content:start}
.eyebrow{margin:0 0 4px;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6a3440}
.productNav{display:flex;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid #e3e5eb;background:#fff}
.versionTab{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:8px 11px;border:1px solid #d9dbe7;border-radius:8px;background:#fff;color:#222;font-size:13px;font-weight:700;cursor:pointer}
.versionTab:hover{background:#f8f9fb}
.versionTab.is-active{border-color:#20242b;background:#20242b;color:#fff}
.versionTab__color{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:22px;border-radius:5px;padding:0 7px;color:#fff;font-size:11px;letter-spacing:.06em}
.versionTab__color--red{background:#b42318}
.versionTab__color--blue{background:#2b6cb0}
.versionTab__color--white{background:#f3f4f6;color:#20242b;border:1px solid #cfd3dc}
.productWorkspace[hidden],.accessGate[hidden],.productNav[hidden],.accountManager[hidden]{display:none!important}
.bookWorkspace{height:calc(100vh - 117px);display:grid;grid-template-columns:minmax(280px,360px) 1fr;gap:12px;padding:12px;background:#f5f6f8}
.bookRail,.bookEditorShell{min-height:0;background:#fff;border:1px solid #e0e2e8;border-radius:8px;box-shadow:0 10px 25px rgba(23,29,40,.04)}
.bookRail{display:flex;flex-direction:column;padding:12px;overflow:hidden}
.bookRail__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.bookRail h2{margin:0;font-size:18px;letter-spacing:0}
.saveState{flex:0 0 auto;border:1px solid #ead2d0;border-radius:999px;padding:4px 8px;background:#fff8f7;color:#8d1d13;font-size:11px;font-weight:700}
.bookMeta{display:grid;gap:4px;margin-bottom:10px;font-size:12px;color:#4a5160}
.bookMeta strong{color:#20242b}
.bookSearch{margin-bottom:10px;border-radius:8px}
.bookSectionList{overflow:auto;display:flex;flex-direction:column;gap:6px;padding-right:2px}
.bookSectionButton{width:100%;display:block;text-align:left;border:1px solid #e3e5eb;border-radius:8px;background:#fff;padding:9px 10px;color:#222;cursor:pointer}
.bookSectionButton:hover{background:#f8f9fb}
.bookSectionButton.is-active{border-color:#b42318;background:#fff6f5}
.bookSectionButton__title{display:block;font-size:13px;font-weight:800;line-height:1.25}
.bookSectionButton__meta{display:flex;gap:8px;align-items:center;margin-top:4px;color:#6a7280;font-size:11px}
.editedDot{width:7px;height:7px;border-radius:999px;background:#b42318;display:inline-block}
.bookEditorShell{display:flex;flex-direction:column;overflow:hidden}
.bookToolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #e3e5eb}
.bookToolbar h1{margin:0;font-size:22px;line-height:1.15;letter-spacing:0;color:#171b22}
.bookToolbar__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.editionControls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.toolbarSelect,.toolbarInput{border:1px solid #d9dbe7;background:#fff;border-radius:8px;min-height:38px;padding:8px 10px;font-size:13px;font-weight:700;color:#20242b;width:auto}
.editionControls .toolbarSelect{min-width:210px}
.editionControls .toolbarSelect:last-child{min-width:120px}
.toolbarInput{width:180px;font-weight:600}
.toolbarSelect{cursor:pointer}
.iconTextButton{border:1px solid #d9dbe7;background:#fff;border-radius:8px;min-height:38px;padding:8px 12px;font-size:13px;font-weight:700;cursor:pointer}
.iconTextButton[aria-pressed=true]{background:#20242b;border-color:#20242b;color:#fff}
.bookSplit{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,500px) minmax(260px,320px);gap:12px;padding:12px;overflow:hidden}
.bookPreview{overflow:auto;padding:34px 42px;border:1px solid #e5e0dc;border-radius:8px;background:#fffdf9;color:#171717;font-family:"EB Garamond",Georgia,"Times New Roman",serif;line-height:1.6;font-variant-numeric:oldstyle-nums}
.bookPreview__empty{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#606a78}
.bookPreview .bookPreview__para{font-size:18px;margin:0;text-indent:1.35em}
.bookPreview .bookPreview__para--noindent{text-indent:0}
.bookPreview .bookPreview__heading{font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:0;line-height:1.15;color:#151515;margin:22px 0 10px}
.bookPreview h3.bookPreview__heading{font-size:18px;font-weight:800}
.bookPreview h4.bookPreview__heading{font-size:16px;font-weight:800}

.bookPreview__chapter{margin:32px 0 18px;text-align:center}
.bookPreview__chapterLabel{font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px;font-weight:800;letter-spacing:.28em;color:#2b2f37;margin-bottom:10px}
.bookPreview__chapterTitle{font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,sans-serif;font-size:44px;font-weight:800;letter-spacing:.02em;line-height:1.05;color:#151515}

.bookPreview__epigraph{max-width:72%;margin:0 0 18px auto;font-style:italic;font-size:16px;line-height:1.5;color:#2d313a}
.bookPreview__epigraph .bookPreview__para{font-size:16px}

.bookPreview__quote{margin:14px 0 16px 36px;padding:0;max-width:52ch;color:#2d313a}
.bookPreview__quote .bookPreview__para{font-size:17px}

.bookPreview__scenePause{margin:18px 0;text-align:center;letter-spacing:.25em;color:#2d313a;font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,sans-serif;font-weight:700}

.bookPreview__dropcap{float:left;font-family:"EB Garamond",Georgia,"Times New Roman",serif;font-size:66px;line-height:.9;padding:.06em .12em 0 0;margin-left:-.04em}

.bookPreview__figure{margin:18px 0}
.bookPreview__figure img{max-width:100%;height:auto;display:block;margin:0 auto}
.bookPreview__figcaption{margin-top:6px;font-size:16px;line-height:1.3;color:#2d313a;font-family:"EB Garamond",Georgia,"Times New Roman",serif}
.bookPreview__list{margin:12px 0 16px;padding-left:26px;color:#1f2937;font-family:"EB Garamond",Georgia,"Times New Roman",serif;font-size:18px;line-height:1.6}
.bookPreview__list li{margin:6px 0}
.bookPreview__sc{font-variant:small-caps;letter-spacing:.02em}

.bookPreview__changed{background:rgba(255, 229, 100, .28);box-shadow:inset 0 0 0 1px rgba(176, 120, 0, .22);border-radius:4px}

.bookPreview--print{background:#f0f1f4;border-color:#d8dbe3}
.printSheet{display:grid;justify-content:center;gap:16px;padding:18px 10px}
.printPage{width:min(560px,100%);aspect-ratio:2/3;background:#fff;border:1px solid #e1e4ea;box-shadow:0 12px 28px rgba(23,29,40,.08);padding:0;position:relative;overflow:hidden}
.printPage__inner{position:absolute;inset:0;display:flex;flex-direction:column}
.printPage__content{flex:1;overflow:hidden;padding:var(--print-top,48px) var(--print-right,54px) 0 var(--print-left,54px)}
.printPage__footer{height:var(--print-footer-height,42px);padding:0 var(--print-right,54px) var(--print-bottom,16px) var(--print-left,54px);display:flex;align-items:flex-end;justify-content:var(--print-footer-justify,center);font-family:"EB Garamond",Georgia,"Times New Roman",serif;font-size:14px;color:#2d313a}
.printPage--measure{box-shadow:none;border:none}

.bookPreview--cover{background:#f0f1f4;border-color:#d8dbe3}
.coverSheet{display:grid;gap:14px;justify-items:center;padding:18px 10px}
.coverMock{display:flex;width:min(760px,100%);aspect-ratio:3/1;background:#fff;border:1px solid #e1e4ea;box-shadow:0 12px 28px rgba(23,29,40,.08);overflow:hidden}
.coverPanel{flex:1;display:grid;place-items:center;font-family:"Source Sans 3",system-ui,-apple-system,Segoe UI,sans-serif;font-weight:800;color:#3b4251;border-right:1px solid #eef0f4}
.coverPanel:last-child{border-right:none}
.coverPanel--spine{flex:0 0 10%;background:#fafbfe}
.packageMeta{width:min(760px,100%);border:1px solid #e1e4ea;border-radius:8px;background:#fff;padding:12px 14px;font-size:12px;color:#4a5160}
.packageMeta strong{color:#20242b}
.bookEditPanel{min-height:0;display:flex;flex-direction:column;gap:8px;overflow:hidden}
.bookEditPanel textarea{flex:1;min-height:260px;border-radius:8px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.5}
.bookEditPanel__footer{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:22px;color:#5d6572;font-size:12px}
.bookEditPanel__footer span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.collabPanel{min-height:0;display:flex;flex-direction:column;gap:8px;overflow:auto;border:1px solid #e3e5eb;border-radius:8px;background:#fff;padding:12px}
.collabPanel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.collabPanel h2{margin:0;font-size:17px;letter-spacing:0;color:#171b22}
.collabPanel__notesHeader{display:flex;align-items:center;justify-content:space-between;margin-top:8px;font-size:12px;font-weight:800;color:#303846;text-transform:uppercase;letter-spacing:.05em}
.collabPanel__notesHeader span:last-child{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;border-radius:999px;background:#f3f4f7;color:#3d4654}
.notesList{display:flex;flex-direction:column;gap:8px;min-height:64px;max-height:280px;overflow:auto}
.noteCard{border:1px solid #e1e4ea;border-radius:8px;background:#fbfbfd;padding:9px}
.noteCard__meta{font-size:11px;color:#697282;margin-bottom:5px}
.noteCard__body{font-size:13px;line-height:1.4;color:#222;white-space:pre-wrap}
.noteEmpty{border:1px dashed #d9dbe7;border-radius:8px;padding:10px;color:#697282;font-size:12px;background:#fbfbfd}
.layout{height:calc(100vh - 117px)}
.whiteWorkspace{min-height:calc(100vh - 117px);display:grid;place-items:center;padding:24px;background:#f5f6f8}
.whiteWorkspace__panel{width:min(760px,100%);border:1px solid #e0e2e8;border-radius:8px;background:#fff;padding:28px;box-shadow:0 12px 34px rgba(23,29,40,.06)}
.whiteWorkspace__panel h1{margin:0 0 10px;font-size:32px;letter-spacing:0;color:#171b22}
.whiteWorkspace__panel p{margin:0 0 18px;color:#4a5160;line-height:1.55}
.domainCards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.domainCards div{border:1px solid #e3e5eb;border-radius:8px;padding:12px;background:#fafbfc}
.domainCards span{display:block;margin-bottom:4px;font-size:11px;font-weight:900;letter-spacing:.08em;color:#5f6877}
.domainCards strong{display:block;font-size:14px;color:#20242b;word-break:break-word}

@media (max-width: 980px){
  .appHeader{align-items:flex-start}
  .authBar{width:100%;margin-left:0}
  .authStatus{max-width:100%}
  .productNav{overflow:auto}
  .bookWorkspace{height:auto;min-height:calc(100vh - 117px);grid-template-columns:1fr}
  .bookRail{max-height:38vh}
  .bookToolbar{align-items:flex-start;flex-direction:column}
  .bookSplit{grid-template-columns:1fr;overflow:visible}
  .bookPreview{padding:24px 22px}
  .layout{height:auto;min-height:calc(100vh - 117px)}
  .domainCards{grid-template-columns:1fr}
}

@media (max-width: 640px){
  .header{padding:12px}
  .accessGate{padding:16px}
  .accessGate__content{padding:22px}
  .accessGate h1{font-size:26px}
  .appleSignInButton,.accessGate__actions .btn{width:100%}
  .bookWorkspace{padding:8px}
  .bookSplit{padding:8px}
  .bookPreview p{font-size:17px}
}
