/* Personal homepage editing follows the existing Oasis card and control theme. */
.home-shortcuts {position:relative;min-height:0;display:flex;flex-direction:column;flex:1;}
.home-personal-toolbar {display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 2px 4px;flex:none;}
.home-personal-heading h2 {font-size:15px;font-weight:700;color:var(--ctp-text);}
.home-personal-heading p {font-size:12px;color:var(--ctp-overlay1);margin-top:3px;}
.home-personal-actions {display:flex;align-items:center;gap:8px;flex:none;}
.home-personal-button {display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--ctp-surface1);border-radius:9px;background:var(--ctp-base);font-size:12px;font-weight:600;color:var(--ctp-subtext0);cursor:pointer;white-space:nowrap;}
.home-personal-button svg {width:16px;height:16px;flex:none;}
.home-personal-button:hover {background:var(--ctp-surface0);border-color:var(--ctp-lavender);}
.home-personal-button:disabled {opacity:.55;cursor:wait;}
.home-personal-primary {background:var(--ctp-teal);border-color:var(--ctp-teal);color:var(--ctp-base);}
.home-personal-primary:hover {background:var(--ctp-sapphire);border-color:var(--ctp-sapphire);}
.home-personal-status {display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;min-height:36px;color:var(--ctp-subtext0);padding:4px 2px;flex:none;}
.home-personal-status button {min-height:36px;padding:4px 8px;color:var(--ctp-teal);font-weight:600;text-decoration:underline;text-underline-offset:3px;}
.home-save-label {margin-left:auto;color:var(--ctp-overlay1);font-size:11px;}
.home-shortcut {position:relative;min-width:0;}
.home-shortcut .home-card {width:100%;height:100%;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none;touch-action:pan-y pinch-zoom;}
.home-shortcuts.is-editing .home-card {border:1px dashed color-mix(in srgb,var(--ctp-lavender) 45%,var(--ctp-surface1));padding-block:16px;background:var(--ctp-mantle);animation:home-edit-sway .28s ease-in-out infinite alternate;cursor:default;}
.home-shortcuts.is-editing .home-shortcut:nth-child(even) .home-card {animation-direction:alternate-reverse;}
.home-remove {position:absolute;right:-7px;top:-12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;}
.home-remove>span {display:grid;place-items:center;width:25px;height:25px;border-radius:50%;background:var(--ctp-base);border:1px solid color-mix(in srgb,var(--ctp-red) 45%,var(--ctp-surface1));color:var(--ctp-red);box-shadow:0 2px 6px #0001;}
.home-remove svg {width:16px;height:16px;}
.home-remove:hover>span {background:var(--ctp-red);color:var(--ctp-base);}
.home-shortcuts .home-scroll {padding:0 8px 28px 2px;}
.home-hidden-panel {margin-top:14px;padding:14px;background:var(--ctp-mantle);border:1px solid var(--ctp-surface1);border-radius:12px;}
.home-hidden-heading {display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;}
.home-hidden-heading h3 {font-size:14px;font-weight:600;}
.home-hidden-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;}
.home-restore-card {display:flex;align-items:center;gap:10px;min-height:52px;padding:8px;border-radius:8px;background:var(--ctp-base);border:1px solid var(--ctp-surface1);font-size:13px;text-align:left;}
.home-restore-card .home-ico {width:32px;height:32px;border-radius:8px;}
.home-restore-card .home-ico svg {width:18px;height:18px;}
.home-restore-card>svg {margin-left:auto;width:18px;height:18px;flex:none;color:var(--ctp-teal);}
.home-restore-card:hover {border-color:var(--ctp-teal);}
.home-empty {text-align:center;padding:40px 16px;color:var(--ctp-subtext0);}
.home-empty h3 {font-size:17px;font-weight:600;margin:12px 0 6px;}
.home-empty p {font-size:13px;margin-bottom:16px;}
.home-empty-icon {display:inline-grid;place-items:center;width:44px;height:44px;border-radius:12px;background:color-mix(in srgb,var(--ctp-teal) 12%,transparent);color:var(--ctp-teal);font-size:26px;}
.home-shortcuts :is(button,a):focus-visible {outline:2px solid var(--ctp-lavender);outline-offset:3px;}
@keyframes home-edit-sway {from{transform:rotate(-.35deg)}to{transform:rotate(.35deg)}}
@media(prefers-reduced-motion:reduce){.home-shortcuts.is-editing .home-card {animation:none;}}
@media(max-width:768px){
 .home-hero {align-items:flex-start;flex-wrap:wrap;padding:22px;gap:14px;}
 .home-stats {margin-left:0;gap:16px;flex-basis:100%;}
 .home-stats span {white-space:nowrap;}
 .home-personal-toolbar {position:sticky;top:var(--lane-tabbar-h,64px);z-index:30;background:var(--ctp-base);padding:12px 2px;}
 .home-personal-status {position:relative;z-index:1;}
}
@media(max-width:520px){
 .home-personal-toolbar {align-items:flex-start;flex-wrap:wrap;gap:8px;}
 .home-personal-heading {display:contents;}
 .home-personal-heading h2 {align-self:center;flex:1;}
 .home-personal-heading p {order:1;width:100%;margin:0;}
 .home-personal-actions {margin-left:auto;}
 .home-shortcuts .home-grid {gap:16px;}
 .home-hidden-grid {grid-template-columns:minmax(0,1fr);}
}

.home-card-heading {display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;}
.home-destination {display:inline-flex;align-items:center;padding:2px 6px;border:1px solid color-mix(in srgb,var(--ctp-lavender) 22%,var(--ctp-surface1));border-radius:5px;background:color-mix(in srgb,var(--ctp-lavender) 8%,var(--ctp-base));color:var(--ctp-subtext0);font-size:10px;font-weight:600;line-height:1.4;white-space:nowrap;}

.home-summary {margin-left:auto;min-width:0;}
.home-summary .home-stats {margin-left:0;}
.home-summary-scope {margin-top:5px;font-size:11px;color:var(--ctp-subtext0);text-align:right;}
.home-summary-status {font-size:13px;color:var(--ctp-subtext0);}
.home-summary-status button {min-height:36px;padding:4px 8px;font-weight:600;color:var(--ctp-teal);text-decoration:underline;}
@media(max-width:768px){.home-summary {margin-left:0;flex-basis:100%;}.home-summary-scope {text-align:left;}}
