:root { --ink:#19392f; --paper:#f7f8f4; --muted:#5f6d66; --line:#d9e1d7; --green:#527767; --wash:#edf3eb; --focus:#956a16; }
* { box-sizing:border-box; }
body { margin:0; background:var(--paper); color:var(--ink); font:1rem/1.45 Arial,sans-serif; }
[hidden] { display:none !important; }
a { color:inherit; }
h1,h2,p { margin:0; }
h1 { font-size:1.5rem; line-height:1.15; letter-spacing:-.035em; font-weight:500; }
h2 { font-size:1.125rem; line-height:1.25; letter-spacing:-.015em; font-weight:600; }
.portal-shell { width:min(100% - 2rem, 34rem); margin-inline:auto; }
.portal-content { padding-block:clamp(.5rem, 2vw, 1rem) 1.5rem; }
.portal-panel { padding:clamp(.875rem, 3vw, 1.375rem); border:1px solid var(--line); border-top:2px solid #9fb8a9; background:white; }
.portal-kicker { margin-bottom:.35rem; color:var(--green); font-size:.6875rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.portal-intro { margin-top:.375rem; color:var(--muted); font-size:.9375rem; }
.portal-note { color:var(--muted); font-size:.8125rem; }
.portal-alert { margin-block:.625rem; padding:.5rem .625rem; border-left:2px solid #956a16; background:#fff6de; font-size:.875rem; }
.portal-button,.portal-text-action { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:44px; min-width:44px; cursor:pointer; }
.portal-button { padding:0 1rem; border:1px solid var(--ink); border-radius:0; background:var(--ink); color:white; font:inherit; text-decoration:none; }
.portal-button:hover { background:#284e41; }
.portal-button--quiet { background:transparent; color:var(--ink); border-color:#9fb8a9; }
.portal-button--quiet:hover { background:var(--wash); }
.portal-button:disabled { opacity:.55; cursor:wait; }
.portal-text-action { padding-inline:4px; font-size:.8125rem; text-underline-offset:3px; }
.portal-input { width:100%; min-width:0; min-height:44px; border:1px solid #a5b8ae; border-radius:3px; padding:6px 9px; color:var(--ink); background:white; font:inherit; }
:focus-visible { outline:2px solid var(--focus); outline-offset:3px; }
.portal-entry form,.portal-entry .portal-note { margin-top:.875rem; }
.portal-tool { display:flex; align-items:center; gap:10px; min-height:54px; padding:.5rem .625rem; margin-top:.875rem; border:1px solid var(--line); text-decoration:none; }
.portal-tool:hover { background:var(--wash); }
.portal-tool small { display:block; color:var(--muted); font-size:.8125rem; }
.portal-tool-arrow { flex:none; margin-inline-start:auto; }
@media(max-width:480px) {
    h1 { font-size:1.375rem; }
    .portal-shell { width:calc(100% - 1.5rem); }
}
/* Homepage shell and wrench navigation. The homepage itself is unchanged. */
.site-wrap { max-width:1200px; margin:auto; padding:0 40px; }
.site-header { display:flex; align-items:center; justify-content:space-between; gap:30px; padding:23px 0; }
.site-header img { display:block; width:270px; }
.site-header nav { display:flex; gap:28px; align-items:center; font-size:14px; }
.site-header nav a { text-decoration:none; }
.site-header nav > a { min-height:44px; display:inline-flex; align-items:center; }
.site-header nav > a:hover { text-decoration:underline; text-underline-offset:4px; }
.site-header :focus-visible { outline:3px solid #caab56; outline-offset:4px; }
.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; }
.tools-menu { position:relative; z-index:10; flex-shrink:0; }
.tools-menu summary { display:flex; align-items:center; justify-content:center; gap:4px; min-width:48px; min-height:48px; list-style:none; cursor:pointer; border:1px solid transparent; border-radius:10px; }
.tools-menu summary::-webkit-details-marker { display:none; }
.tools-menu summary:hover,.tools-menu[open] summary { background:#e7eee6; border-color:#cbd9cb; }
.tools-menu[open] .tools-chevron { transform:rotate(180deg); }
.tools-panel { position:absolute; right:0; top:calc(100% + 10px); width:264px; max-width:calc(100vw - 40px); padding:8px; background:#fff; border:1px solid #d8e2d7; border-radius:12px; box-shadow:0 14px 36px #19392f20; }
.tools-item { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:11px 12px; border-radius:6px; font-size:14px; white-space:nowrap; }
.tools-item[href]:hover,.tools-signout button:hover { background:#edf3eb; }
.tools-unavailable { color:#68766e; border-top:1px solid #edf0e9; border-radius:0; margin-top:4px; }
.tools-badge { font-size:10px; font-weight:600; letter-spacing:.02em; padding:3px 7px; border-radius:4px; background:#eef2eb; color:#53665a; }
.tools-protected { border-top:1px solid #edf0e9; margin-top:4px; padding-top:4px; }
.tools-item--parent { font-weight:600; }
.tools-item--child { margin-inline-start:14px; padding-inline-start:14px; }
.tools-signout { margin-top:4px; }
.tools-signout button { width:100%; background:transparent; border:none; color:inherit; font:inherit; cursor:pointer; }
@media(max-width:850px) {
    .site-wrap { padding:0 25px; }
    .site-header img { width:220px; }
    .site-header nav { gap:18px; }
}
@media(max-width:600px) {
    .site-header { position:relative; align-items:flex-start; flex-direction:column; gap:17px; }
    .site-header img { width:min(190px,65vw); }
    .site-header nav { width:100%; justify-content:space-between; }
    .site-header .tools-menu { position:absolute; right:0; top:18px; }
    .site-header nav > a { min-height:44px; margin-block:-11px; }
}
