/* Shared layout and components. Palette lives exclusively in theme.css. */
.graphite {
     
   
  
  background:var(--paper); color:var(--ink);
}
.graphite .brand small {display:none}
.graphite .brand {letter-spacing:0;gap:12px}
.graphite .brand-symbol {width:42px;height:42px}
.graphite .sidebar,.graphite .mobile-header {background:var(--color-surface)}
.graphite .sidebar nav a.active {background:var(--color-subtle);color:var(--ink)}
.graphite .sidebar nav a:hover {background:var(--color-subtle)}
.graphite .main-navigation {display:flex;flex-direction:column}
.graphite .main-navigation a[href='/workspace/'] {order:0}
.graphite .main-navigation a[href='/creations/'] {order:1}
.graphite .main-navigation a[href='/resources/'] {order:2}
.graphite .main-navigation a[href='/library/'] {order:3}
.graphite .main-navigation a[href='/tools/'] {order:4}
.graphite .sidebar nav a {gap:12px;padding:13px 12px;font-size:15px}
.graphite .side-bottom nav a {font-size:13px}
.graphite .public-links a {font-size:14px}
.graphite .nav-planned {font-size:9px;color:var(--muted);margin-left:auto;white-space:nowrap}
.graphite .avatar {background:var(--color-subtle);color:var(--color-secondary)}
.graphite .button,.graphite button {background:var(--ink);border-color:var(--ink);color:var(--color-surface)}
.graphite .button:hover,.graphite button:hover {background:var(--color-ink)}
.graphite .button.secondary {background:var(--color-surface);color:var(--ink);border-color:var(--line)}
.graphite .button.secondary:hover {background:var(--color-subtle);border-color:var(--color-border-strong)}
.graphite button:disabled {opacity:1;background:var(--color-secondary);color:var(--color-surface);cursor:not-allowed}
.graphite :is(input,select,textarea):focus {outline:2px solid var(--color-focus);border-color:var(--color-muted)}
.graphite .header-balance .ui-icon,.graphite .recharge-link.button {color:var(--ink)}
.graphite .recharge-link.button {border-color:var(--line)}
.graphite .public-nav {max-width:1280px;padding:24px 40px;min-height:90px}
.graphite .public-main {background:var(--color-surface)}
.graphite .public-header {background:var(--color-surface)}
.graphite .studio-container {max-width:1260px;padding-left:40px;padding-right:40px}
.graphite .visitor-hero {padding-top:30px;padding-bottom:42px}
.graphite .hero-kicker {color:var(--muted);font-size:14px;letter-spacing:.5px;margin-bottom:18px}
.graphite .visitor-hero h1 {font-size:clamp(42px,5.6vw,72px);line-height:1.2;font-weight:750;letter-spacing:-2px;margin-bottom:20px}
.graphite .hero-subtitle {font-size:19px;color:var(--muted);letter-spacing:0;margin-bottom:32px}
.graphite .visitor-hero .ad-composer {max-width:1060px}
.graphite .task-composer {box-shadow:none;border-color:var(--line);border-radius:14px;padding:18px 22px}
.graphite .task-tabs {grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;border-color:var(--line);margin-bottom:18px}
.graphite .task-tabs button {background:transparent;color:var(--ink);border:0;font-size:16px;padding:8px 22px 17px;justify-content:flex-start}
.graphite .task-tabs button:hover {background:var(--color-page)}
.graphite .task-tabs button[aria-selected=true] {color:var(--ink);font-weight:650}
.graphite .task-tabs button[aria-selected=true]:after {left:12px;right:auto;width:140px;max-width:85%;background:var(--ink);height:2px}
.graphite .creative-input {display:flex;gap:16px;align-items:stretch}
.graphite .creative-input p {flex:1;min-width:0;margin:0;border:1px solid var(--line);border-radius:8px;padding:16px 18px;font-size:14px;background:var(--color-surface);line-height:1.5;text-align:left}
.graphite .creative-input button {font-size:13px;min-width:175px;padding:14px 18px;border-radius:8px}
.graphite .creative-meta {display:flex;justify-content:space-between;gap:16px;margin-top:16px;font-size:11px;color:var(--muted)}
.graphite .creative-meta a {color:var(--ink);white-space:nowrap}
.graphite .creative-disclosure {font-size:11px;color:var(--muted);margin:13px 0 0;text-align:left}
.graphite .studio-section-heading h2 {font-size:26px;font-weight:650;letter-spacing:-.5px}
.graphite .examples-section .studio-section-heading>a {color:var(--muted)}
.graphite .examples-section {padding-bottom:0}
.graphite .creative-examples {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.graphite .creative-card {border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--color-surface);min-width:0;transition:border-color .15s}
.graphite .creative-card:hover {border-color:var(--color-muted)}
.graphite .creative-art {position:relative;aspect-ratio:1.55;overflow:hidden;background:var(--color-page)}
.graphite .creative-art img {width:100%;height:100%;object-fit:cover;display:block}
.graphite .sample-badge {position:absolute;top:12px;left:12px;font-size:10px;line-height:1;padding:5px 8px;border:1px solid var(--color-border-strong);background:var(--color-overlay);border-radius:20px;color:var(--color-secondary)}
.graphite .creative-caption {display:grid;grid-template-columns:1fr auto;gap:5px 8px;padding:15px 16px}
.graphite .creative-caption strong {font-size:14px;font-weight:550}
.graphite .creative-caption small {grid-column:1/-1;color:var(--muted);font-size:10px;line-height:1.6}
.graphite .example-disclosure {font-size:11px;margin:14px 0 0;line-height:1.6}
.graphite .resource-entry {margin-top:30px;padding:24px;border:1px solid var(--line);background:var(--color-surface);border-radius:12px}
.graphite .resource-entry .studio-section-heading {margin-bottom:6px}
.graphite .resource-entry h2 {font-size:18px}
.graphite .resource-entry>p {font-size:12px;margin:0 0 20px}
.graphite .resource-entry input {background:var(--color-surface);border-color:var(--line)}
.graphite .provider-select select {background:var(--color-page)}
.graphite .home-footnote {margin-top:24px;margin-bottom:24px;color:var(--muted)}
.graphite .public-body footer {max-width:1180px}
.graphite.app-page main {max-width:1320px;padding-top:22px}
.graphite .studio-heading h1 {font-size:clamp(30px,3.6vw,48px);font-weight:700;line-height:1.35;letter-spacing:-1px}
.graphite .studio-heading p {font-size:14px}
.graphite .demo-note {background:var(--color-subtle);color:var(--color-secondary);margin-bottom:18px}
.graphite .resume-grid {grid-template-columns:1fr;gap:10px}
.graphite .resume-card {padding:16px 18px}
.graphite .resume-symbol {width:38px;height:38px;background:var(--color-subtle);color:var(--ink)}
.graphite .resume-action {align-self:center;color:var(--ink)}
.graphite .resume-card:hover,.graphite .result-card:hover {border-color:var(--color-muted);box-shadow:none}
.graphite .result-cover {background:var(--color-subtle);min-height:142px;padding:18px}
.graphite .result-cover h3 {font-size:20px;margin-top:13px}
.graphite .resource-stamp {background:var(--color-border);color:var(--color-secondary)}
.graphite .result-cover>span:nth-child(2),.graphite .result-caption>span {color:var(--muted)}
.graphite .result-caption strong>span {color:var(--ink)}
.graphite .results-empty {background:var(--color-page);border-color:var(--line);padding:25px}
.graphite .empty-folders {color:var(--color-muted)}
.graphite .activity-details {border-color:var(--line)}
@media(max-width:1024px) {
 .graphite .public-nav {padding:22px 30px;gap:25px}
 .graphite .studio-container {padding-left:30px;padding-right:30px}
 .graphite .public-body footer {margin:0 30px}
 .graphite .creative-input button {min-width:155px}
 .graphite .sidebar .nav-planned {display:none}
}
@media(max-width:760px) {
 .graphite .public-nav {padding:18px 20px;gap:18px}
 .graphite .public-links {gap:28px}
 .graphite .studio-container {padding-left:20px;padding-right:20px}
 .graphite .visitor-hero {padding-top:28px;padding-bottom:30px}
 .graphite .visitor-hero h1 {font-size:42px;letter-spacing:-1px}
 .graphite .hero-kicker {font-size:12px;margin-bottom:16px}
 .graphite .hero-subtitle {font-size:13px;line-height:1.8;margin-bottom:24px;max-width:320px}
 .graphite .task-composer {padding:15px}
 .graphite .task-tabs {gap:6px;margin-bottom:15px}
 .graphite .task-tabs button {font-size:12px;padding:8px 4px 15px;justify-content:center}
 .graphite .task-tabs button[aria-selected=true]:after {left:6px;right:6px;width:auto}
 .graphite .creative-input {flex-direction:column;gap:10px}
 .graphite .creative-input p {font-size:12px;padding:14px;min-height:65px}
 .graphite .creative-input button {min-height:44px;font-size:12px}
 .graphite .creative-meta {flex-wrap:wrap;gap:8px;font-size:10px;margin-top:12px}
 .graphite .creative-disclosure {font-size:10px;line-height:1.7}
 .graphite .studio-section-heading h2 {font-size:20px}
 .graphite .examples-section .studio-section-heading {align-items:flex-start}
 .graphite .examples-section .studio-section-heading h2 {max-width:230px;font-size:21px}
 .graphite .creative-examples {grid-template-columns:1fr;gap:14px}
 .graphite .creative-art {aspect-ratio:1.65}
 .graphite .creative-caption {padding:13px 15px}
 .graphite .creative-caption strong {font-size:15px}
 .graphite .resource-entry {padding:18px;margin-top:25px}
 .graphite .resource-entry>p {font-size:11px;line-height:1.7}
 .graphite .resource-entry .composer-search>button {min-height:44px}
 .graphite .home-footnote {font-size:9px;gap:8px}
 .graphite .public-body footer {margin:0 20px;flex-wrap:wrap}
 .graphite.app-page main {padding:22px 20px 35px}
 .graphite .studio-heading h1 {font-size:30px;letter-spacing:-.8px;max-width:450px}
 .graphite .studio-heading p {font-size:12px;line-height:1.7}
 .graphite .sidebar .main-navigation {display:grid}
 .graphite .resume-card {padding:14px;flex-wrap:wrap}
 .graphite .resume-card .resume-action {margin-left:50px}
 .graphite .resume-card>div {flex:1}
 .graphite .result-cover h3 {font-size:18px}
 .graphite .sidebar nav a {min-height:44px}
}
@media(max-width:380px) {
 .graphite .public-actions {gap:12px}
 .graphite .public-actions .button {padding:8px 12px}
 .graphite .public-nav .brand {font-size:23px;gap:8px}
 .graphite .brand-symbol {width:35px;height:35px}
 .graphite .visitor-hero h1 {font-size:36px}
 .graphite .studio-heading h1 {font-size:27px}
}

/* Shared business surfaces use the same tokens as the creative workspace. */
.graphite .page-heading h1 {font-family:var(--font-sans);font-weight:700}
.graphite .panel,.graphite .provider-card,.graphite .purchase-card,.graphite .stat {border-color:var(--line);box-shadow:none}
.graphite .price-option {background:var(--color-surface);color:var(--ink);border:1px solid var(--line)}
.graphite .price-option:hover {background:var(--soft);color:var(--ink);border-color:var(--color-border-strong)}
.graphite .price-option small {color:var(--muted)}
.graphite .text-button,.graphite .sample-link {background:transparent;color:var(--ink)}
.graphite .text-button:hover,.graphite .sample-link:hover {background:var(--soft);color:var(--ink)}
.graphite .notice {background:var(--color-subtle);border-color:var(--line);color:var(--color-secondary)}
.graphite .notice.error {background:var(--color-danger-bg);border-color:var(--color-danger-border);color:var(--color-danger)}
.graphite .notice.success {background:var(--color-success-bg);border-color:var(--color-success-border);color:var(--color-success)}
.graphite .notice a {color:inherit;text-decoration:underline;text-underline-offset:3px}
.graphite .creation-card {background:var(--color-surface);border-color:var(--line)}
.graphite .creation-card img {object-fit:cover}
.graphite .status-label {color:var(--color-secondary);background:var(--color-subtle);border-color:var(--line)}
.graphite .collection-tabs a.active {background:var(--soft);color:var(--ink)}
.graphite .operations-total {background:var(--ink);color:var(--color-inverse)}
.graphite .operations-total>small {color:var(--color-border)}
.graphite .operations-tabs .selected {color:var(--ink);background:var(--color-surface)}
.graphite .operations-side-card {background:var(--color-subtle)}
@media(max-width:760px) {
 .graphite .page-heading h1 {font-size:28px}
 .graphite .auth-card {padding:24px 20px}
 .graphite .panel-heading {flex-wrap:wrap}
 .graphite .price-chip {white-space:normal}
}
