/* Retain stored designs and internal APIs; remove gallery entry points from visitors' UI. */
a[data-route="gallery"],a[data-route="about"],a[data-route="story"],a[data-route="making"],a[href="#gallery"],a[href="#about"],a[href="#story"],a[href="#making"],.gallery-save-action,.gallery-browse-action,.gallery-save-primary,.tile-gallery-open,.tile-pager-gallery,[data-save-gallery],[data-open-gallery],#golf-flipbook #gallery,#golf-flipbook #save,[data-retired-gallery]{display:none!important}
#golf-flipbook .gd-menu>.actions{grid-template-columns:1fr 1fr!important}
html body :is(#notebooks,#book,#golf-flipbook) :is(.gallery-save-action,.gallery-browse-action,.gallery-save-primary,.tile-gallery-open,.tile-pager-gallery,[data-save-gallery],[data-open-gallery],[data-retired-gallery]){display:none!important}
html body #golf-flipbook :is(#gallery,#save){display:none!important}

.simple-config details:has(> summary[data-simple-copy="11"]){display:none!important}
.notebook-3d-action{display:flex;justify-content:center;width:100%;margin:18px 0;clear:both}
.notebook-3d-action>.p3-open{position:static!important;inset:auto!important;transform:none!important;float:none!important;margin:0!important;min-height:44px}

/* Keep the standard font selector; remove advanced font imports. */
html body details.brand-fonts{display:none!important}
/* A clear reading order for notebook text editing. */
#notebooks #text-controls{display:flex;flex-direction:column;gap:10px;min-width:0}
#notebooks #text-controls>label{margin:0;font-weight:600}
#notebooks #text-controls #words{box-sizing:border-box;width:100%;min-height:112px;padding:12px;border:1px solid #cbd8d1;border-radius:10px;resize:vertical;font:16px/1.5 system-ui;margin:0 0 8px}
#notebooks #text-controls>.row{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:18px;align-items:start}
#notebooks #text-controls>.row>div{min-width:0}
#notebooks #text-controls>.row label{display:block;margin:0 0 8px;font-weight:600}
#notebooks #text-controls #font{display:block;width:100%!important;max-width:100%;min-height:46px!important;margin:0;box-sizing:border-box;font-size:15px!important}
#notebooks #text-controls>.row>div:has(#ink){display:grid;grid-template-columns:48px minmax(0,1fr);gap:8px 12px;align-items:center}
#notebooks #text-controls label[for=ink]{grid-column:1/-1;margin:0}
#notebooks #text-controls #ink{box-sizing:border-box;width:48px!important;height:46px!important;min-width:48px!important;padding:5px!important;margin:0!important;border:1px solid #bdcdc3;border-radius:9px;background:#fff;cursor:pointer}
#notebooks #text-controls #ink::-webkit-color-swatch-wrapper{padding:0}
#notebooks #text-controls #ink::-webkit-color-swatch{border:1px solid #d4ddd7;border-radius:4px}
#notebooks #text-controls .brand-hex{width:100%!important;min-width:0!important;height:46px!important;min-height:46px!important;padding:10px 12px!important;margin:0!important;letter-spacing:.03em}
#notebooks #text-controls .custom-font-tip{display:none!important}
/* Keep direct manipulation on the preview; remove the precision disclosure. */
.simple-config details:has(> summary[data-simple-copy="12"]){display:none!important}
/* Notebook ordering is available directly beside the preview. */
#notebooks .gd-steps{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#notebooks .gd-steps>.gd-button:nth-child(3),#notebooks .gd-check,#notebooks .simple-config[data-simple-step="1"] .gd-next>.gd-primary{display:none!important}
#notebooks .notebook-3d-action{gap:12px;flex-wrap:wrap}
#notebooks .notebook-3d-action>button{flex:1 1 150px;max-width:240px;min-height:48px;border-radius:10px;padding:12px 18px;font:600 15px/1.4 system-ui;cursor:pointer}
#notebooks .notebook-order-direct{background:#245b48;color:white;border:1px solid #245b48}
#notebooks .notebook-order-direct:hover{background:#194332}
#notebooks .notebook-order-direct:focus-visible{outline:3px solid #bc8844;outline-offset:3px}
#notebooks .notebook-design-list{margin:20px 0 28px;padding:20px;background:#fffef9;border:1px solid #d7e1d9;border-radius:16px}
#notebooks .notebook-list-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:16px}
#notebooks .notebook-list-heading h2{margin:0;font-size:25px}
#notebooks .notebook-design-row{display:grid;grid-template-columns:66px minmax(100px,1fr) 90px auto;gap:14px;align-items:center;padding:12px;border:1px solid #dbe3dd;border-radius:12px;margin-top:10px}
#notebooks .notebook-design-row.is-editing{border-color:#6d987f;background:#edf4ed}
#notebooks .notebook-design-row label{display:flex;flex-direction:column;gap:6px;min-width:0;font:600 12px/1.4 system-ui}
#notebooks .notebook-design-row input{width:100%;min-width:0;box-sizing:border-box;min-height:44px;border:1px solid #c1d0c5;border-radius:8px;padding:9px;font:15px system-ui;background:white}
#notebooks .notebook-design-thumb{display:flex;align-items:center;gap:6px;padding:3px;background:none;border:0}
#notebooks .notebook-design-thumb img{width:42px;height:63px;object-fit:contain}
#notebooks .notebook-list-actions{display:flex;gap:6px;flex-wrap:wrap}
#notebooks .notebook-design-list button{min-height:44px;border-radius:8px;cursor:pointer}
#notebooks .notebook-list-heading button{padding:10px 16px;background:#245b48;color:white;border:1px solid #245b48}
#notebooks .notebook-list-actions button{padding:8px 10px;background:white;color:#245b48;border:1px solid #b9cdbc}
#notebooks .notebook-list-summary{font:14px system-ui;margin:14px 0 0;color:#486353}
@media(max-width:700px){#notebooks .notebook-design-row{grid-template-columns:52px minmax(0,1fr) 72px;gap:10px}#notebooks .notebook-list-actions{grid-column:2/-1}#notebooks .notebook-design-list{padding:12px}#notebooks .notebook-list-heading button{width:100%}}

/* All preview viewing tools share one row. */
#notebooks .simple-config-layout .gd-notebook-preview-actions{grid-template-columns:repeat(3,minmax(0,1fr))!important}
#notebooks .gd-notebook-preview-actions>.p3-open{position:static!important;inset:auto!important;transform:none!important;float:none!important;margin:0!important;max-width:none!important}
/* The notebook preview is viewed in the editor, not downloaded. */
#notebooks #download{display:none!important}
/* Individual notebook cards with consistent control alignment. */
#notebooks .notebook-list-rows{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:14px;align-items:stretch}
#notebooks .notebook-design-row{display:grid;grid-template-columns:minmax(0,1fr) 76px;gap:12px;margin:0;padding:16px;align-items:end;align-content:start}
#notebooks .notebook-design-thumb{grid-column:1/-1;position:relative;justify-content:center;width:100%;min-height:168px;background:#f8faf6;border:1px solid #dbe5dc;border-radius:10px}
#notebooks .notebook-design-thumb img{width:100px;height:150px;object-fit:contain}
#notebooks .notebook-design-thumb span{position:absolute;top:9px;left:10px;white-space:nowrap;font:700 13px/1 system-ui;background:white;border-radius:20px;padding:7px;color:#245b48}
#notebooks .notebook-list-actions{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:stretch}
#notebooks .notebook-list-actions button{width:100%;margin:0;padding:10px 5px;min-height:44px;box-sizing:border-box}
#notebooks .notebook-list-actions button[aria-pressed=true]{background:#245b48;color:white}
#notebooks .notebook-design-row>label{margin:0!important;align-self:end}
#notebooks .notebook-design-row>label input{height:46px!important;margin:0!important}

/* Compact notebook disclosures: each item can be opened independently. */
#notebooks .notebook-list-rows{display:flex;flex-direction:column;gap:10px}
#notebooks details.notebook-design-row{display:block;padding:0;overflow:hidden}
#notebooks .notebook-design-thumb{display:grid;grid-template-columns:44px 28px minmax(0,1fr) 20px;gap:12px;min-height:80px;padding:12px 16px;box-sizing:border-box;background:transparent;border:0;border-radius:0;cursor:pointer;list-style:none}
#notebooks .notebook-design-thumb::-webkit-details-marker{display:none}
#notebooks .notebook-design-thumb img{width:40px;height:58px}
#notebooks .notebook-design-thumb span{position:static;padding:0;background:none;text-align:center}
#notebooks .notebook-design-thumb strong{font:600 15px/1.4 system-ui;overflow-wrap:anywhere}
#notebooks .notebook-design-thumb:after{content:'＋';font:20px system-ui;color:#245b48}
#notebooks details[open]>.notebook-design-thumb:after{content:'−'}
#notebooks .notebook-design-thumb:focus-visible{outline:3px solid #bc8844;outline-offset:-4px}
#notebooks .notebook-row-fields{display:grid;grid-template-columns:minmax(0,1fr) 90px auto;align-items:end;gap:14px;padding:0 16px 16px}
#notebooks .notebook-row-fields label{margin:0!important}
#notebooks .notebook-row-fields input{height:46px;margin:0!important}
#notebooks .notebook-row-fields .notebook-list-actions{grid-column:auto}
#notebooks .notebook-row-fields .notebook-list-actions button{height:46px;min-width:70px}
@media(max-width:700px){#notebooks .notebook-row-fields{grid-template-columns:minmax(0,1fr) 76px;gap:12px}#notebooks .notebook-row-fields .notebook-list-actions{grid-column:1/-1}#notebooks .notebook-design-thumb{gap:8px;padding:12px}}

#notebooks .notebook-digital-message{margin:18px auto 12px;max-width:650px;width:100%;box-sizing:border-box;text-align:left}#notebooks .notebook-digital-message h3{font:600 18px/1.4 system-ui;margin:0 0 8px}#notebooks .notebook-digital-message input{min-height:20px}

#notebooks details.notebook-design-row:has(.notebook-action-menu[open]){overflow:visible;position:relative;z-index:101}
#notebooks .notebook-header-actions{display:flex;gap:10px;flex-wrap:wrap}
#notebooks .notebook-file-help{font:13px/1.5 system-ui;color:#607569;margin:0 0 16px}
#notebooks .notebook-list-heading .notebook-open-file{background:white;color:#245b48;border-color:#b9cdbc}
#notebooks .notebook-row-fields .notebook-list-actions{display:block;min-width:130px}
#notebooks .notebook-action-menu{position:relative;padding:0;border:0;background:none;overflow:visible}
#notebooks .notebook-action-menu>summary{box-sizing:border-box;list-style:none;display:flex;align-items:center;justify-content:center;height:46px;padding:10px 18px;border:1px solid #b9cdbc;border-radius:9px;background:white;color:#245b48;font:600 14px/1.4 system-ui;cursor:pointer}
#notebooks .notebook-action-menu>summary::-webkit-details-marker{display:none}
#notebooks .notebook-action-options{position:absolute;right:0;top:calc(100% + 6px);z-index:100;width:190px;padding:6px;display:grid;gap:3px;background:#fffdf8;border:1px solid #c7d5ca;border-radius:12px;box-shadow:0 8px 24px #173c2e22}
#notebooks .notebook-action-menu:not([open])>.notebook-action-options{display:none}
#notebooks .notebook-action-options>button{border:0;text-align:left;border-radius:6px;padding:10px 12px}
#notebooks .notebook-action-options>button:hover{background:#edf4ed}
#notebooks .notebook-action-menu summary:focus-visible{outline:3px solid #a5c4b1;outline-offset:2px}
@media(max-width:700px){#notebooks .notebook-header-actions{width:100%}#notebooks .notebook-header-actions button{flex:1 1 160px}#notebooks .notebook-action-options{left:0;right:auto;width:100%;box-sizing:border-box}}
