/* Patent Insights — unified workspace design system. No build tool required. */
:root {
  --pi-navy: #14253c;
  --pi-ink: #142237;
  --pi-blue: #175cd3;
  --pi-muted: #56657a;
  --pi-line: #dae3ed;
  --pi-canvas: #f4f7fa;
  --pi-focus: #1570ef;
}
html { scroll-behavior: smooth; }
body { background: var(--pi-canvas) !important; color: var(--pi-ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body > header { background: #fff !important; border-color: #e3e9f0; box-shadow: 0 3px 18px rgba(19,35,59,.045) !important; }
body > header .container { max-width: 1480px; }
body > header h1 { font-size: 1.22rem; letter-spacing: -.034em; color: var(--pi-navy); }
body > header nav a, body > header nav button { font-weight: 600; font-size: .85rem; }
body > header nav a:hover, body > header nav button:hover { color: var(--pi-blue); }
#panel-analyzer > main { max-width: 1480px; margin: auto; }
#panel-analyzer section > .grid { gap: 1.25rem; }
#panel-analyzer .bg-card { background: white; border: 1px solid var(--pi-line); border-radius: 16px; box-shadow: 0 6px 18px rgba(20,35,60,.035); overflow: hidden; }
#panel-analyzer .bg-card > .flex:first-child { border-bottom: 1px solid #edf1f6; }
#panel-analyzer .bg-card h3 { font-size: 1.075rem; color: #1b2c43; font-weight: 720; letter-spacing: -.026em; }
#panel-analyzer .bg-card p { line-height: 1.55; }
#panel-analyzer input:not([type="checkbox"]):not([type="radio"]),
#panel-analyzer textarea,
#api-dialog input[type="password"] { border-color: #d4dfeb; border-radius: 9px; }
#panel-analyzer input:focus, #panel-analyzer textarea:focus, #panel-analyzer select:focus,
#api-dialog input:focus, #api-dialog select:focus { outline: 2px solid #9cc6ff; outline-offset: 1px; }
#panel-analyzer button, #api-dialog button { transition: transform .12s ease, box-shadow .12s ease, background .12s ease; }
#panel-analyzer button:not(:disabled):active, #api-dialog button:not(:disabled):active { transform: translateY(1px); }
#panel-analyzer .bg-primary, #api-dialog .bg-blue-600 { background-color: #175cd3 !important; }
#panel-analyzer .bg-primary:hover { background-color: #164ca9 !important; }
#panel-analyzer .rounded-md { border-radius: 9px; }
#panel-analyzer .text-muted-foreground { color: #637286; }
#panel-analyzer table { border-collapse: separate; border-spacing: 0; }
#panel-analyzer table th { background: #f5f8fc; border-bottom: 1px solid #dce5ef; color: #3a4a61; letter-spacing: .005em; }
#panel-analyzer table td { background: #fff; border-color: #e8edf3; }
#panel-analyzer table tr:hover td { background: #f8faff; }
#panel-analyzer table .sticky { z-index: 1; }
#panel-analyzer table th.sticky { z-index: 2; }
#api-dialog > div { border-radius: 18px; border: 1px solid #e6ebf1; box-shadow: 0 30px 70px rgba(7,22,43,.22); }
#api-dialog h2 { letter-spacing: -.035em; color: var(--pi-ink); }
#api-status { margin-left: auto; margin-right: auto; max-width: 1480px; border-radius: 9px; }
#tab-analyzer { color: #175cd3; border-color: #175cd3; font-weight: 700; }
.workspace-intro { padding: clamp(25px, 3.5vw, 46px); border-radius: 20px; background: radial-gradient(100% 150% at 100% 0%, #2a5185 0%, transparent 58%), linear-gradient(130deg, #11243c 0%, #172f50 75%, #223e67 100%); color: #fff; position: relative; overflow: hidden; box-shadow: 0 13px 32px rgba(25,48,84,.12); }
.workspace-intro::after { content: ''; position: absolute; width: 400px; height: 400px; right: -170px; top: -230px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; pointer-events: none; }
.workspace-label { color: #9fd7ff; font-size: .68rem; letter-spacing: .17em; font-weight: 800; margin-bottom: 15px; }
.workspace-intro-main { display: flex; justify-content: space-between; align-items: end; gap: 36px; }
.workspace-intro h2 { max-width: 690px; font-size: clamp(1.65rem, 3.25vw, 2.7rem); line-height: 1.15; font-weight: 780; letter-spacing: -.048em; }
.workspace-intro p { max-width: 670px; font-size: .94rem; line-height: 1.65; color: #c7d8ec; margin-top: 14px; }
.workspace-quick-actions { display: flex; flex-direction: column; flex: 0 0 186px; gap: 7px; }
.workspace-quick-actions a { padding: 10px 12px; border: 1px solid rgba(190,218,247,.32); background: rgba(255,255,255,.07); color: #eff6ff; border-radius: 9px; font-size: .79rem; font-weight: 650; display: flex; align-items: center; justify-content: space-between; }
.workspace-quick-actions a:hover { background: rgba(255,255,255,.16); }
.ai-batch-panel { margin-top: 19px; padding: 17px 16px; background: #f0f6ff; border: 1px solid #c9defa; border-radius: 12px; }
.ai-batch-panel h4 { font-size: .86rem; }
.ai-batch-panel p { max-width: 480px; }
.ai-batch-panel input { flex-shrink: 0; cursor: pointer; }
.workspace-switcher { position: sticky; top: 0; z-index: 999; background: #142840; color: #d4e4f4; box-shadow: 0 4px 12px rgba(18,32,50,.12); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.workspace-switcher-inner { max-width: 1500px; margin: 0 auto; display: flex; justify-content: space-between; gap: 16px; padding: 10px 22px; align-items: center; }
.workspace-switcher-brand { white-space: nowrap; font-size: 14px; font-weight: 780; letter-spacing: -.02em; color: white !important; }
.workspace-switcher nav { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.workspace-switcher nav a { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 7px; text-decoration: none !important; color: #d6e6f8 !important; white-space: nowrap; font-size: 12px; font-weight: 600; }
.workspace-switcher nav a.current { background: rgba(255,255,255,.16); color: #fff !important; }
.workspace-switcher nav a:hover { background: rgba(255,255,255,.10); }
@media(max-width: 850px) { .workspace-intro-main { flex-direction: column; align-items: stretch; gap: 24px; } .workspace-quick-actions { flex-direction: row; flex: auto; flex-wrap: wrap; } .workspace-quick-actions a { flex: 1; min-width: 135px; } .workspace-switcher-inner { align-items: start; flex-direction: column; gap: 6px; } }
@media(max-width: 540px) { .workspace-intro { padding: 22px; } .workspace-intro h2 { font-size: 1.67rem; } #panel-analyzer .bg-card > .flex { padding: 18px; } .workspace-switcher nav a { font-size: 11px; padding: 6px 7px; } }
