:root{
  --tf-navy-950:#03152d;
  --tf-navy-900:#061d3b;
  --tf-navy-850:#082747;
  --tf-blue:#0d61cf;
  --tf-blue-dark:#084da8;
  --tf-gold:#d2ad52;
  --tf-gold-soft:#f1d98f;
  --tf-canvas:#e9f0f8;
  --tf-line:#cfdae8;
  --tf-card:#ffffff;
  --tf-ink:#12243a;
  --tf-muted:#5e7087;
  --sidebar:244px;
  --topbar:70px;
  --content:1520px;
  --shadow-sm:0 2px 8px rgba(4,30,59,.06),0 10px 26px rgba(4,30,59,.05);
  --shadow-md:0 20px 55px rgba(3,26,52,.14);
}

html{background:var(--tf-navy-950)}
body{background:var(--tf-canvas);color:var(--tf-ink)}

/* Reference-matched application shell */
.app-sidebar{
  width:var(--sidebar);
  background:linear-gradient(180deg,#02162f 0%,#052549 55%,#031c38 100%);
  border-right:1px solid rgba(210,173,82,.55);
  padding:16px 13px 14px;
  scrollbar-color:rgba(255,255,255,.18) transparent;
}
.sidebar-brand{
  gap:11px;
  min-height:70px;
  padding:2px 7px 16px;
  border-bottom:1px solid rgba(210,173,82,.2);
}
.sidebar-brand img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.22))}
.sidebar-brand>span:last-child{display:grid;gap:2px}
.sidebar-brand>span:last-child strong{font-family:Georgia,"Times New Roman",serif;font-size:1.06rem;letter-spacing:.01em;color:#fff}
.sidebar-brand>span:last-child small{font-family:Georgia,"Times New Roman",serif;color:var(--tf-gold-soft);font-size:.62rem;line-height:1.25}
.sidebar-section-label{color:#7f99b4;padding:13px 9px 6px;font-size:.61rem;letter-spacing:.14em}
.sidebar-nav{gap:3px}
.sidebar-nav button{
  min-height:39px;
  grid-template-columns:19px 1fr auto;
  gap:9px;
  padding:0 9px;
  border-radius:7px;
  color:#d5e0ec;
  font-size:.76rem;
  font-weight:680;
}
.sidebar-nav button svg,.sidebar-tools svg{width:17px;height:17px;color:#c5d3e2}
.sidebar-nav button kbd{font-size:.56rem;padding:1px 5px;color:#7892ac}
.sidebar-nav button:hover{background:rgba(255,255,255,.07)}
.sidebar-nav button.active{
  color:#fff;
  background:linear-gradient(100deg,#0a58b5,#0d6ee3);
  box-shadow:0 8px 22px rgba(5,89,190,.25),inset 3px 0 0 #8fc4ff;
}
.sidebar-tools{gap:3px}
.sidebar-tools a{grid-template-columns:19px 1fr;gap:9px;padding:8px 9px;border-radius:7px}
.sidebar-tools strong{font-size:.72rem;line-height:1.28}
.sidebar-decision{
  margin-top:12px;
  padding:11px;
  border-color:rgba(210,173,82,.34);
  background:linear-gradient(145deg,rgba(9,58,103,.82),rgba(5,37,73,.9));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
.sidebar-decision-head span{background:#37c67c;box-shadow:0 0 0 4px rgba(55,198,124,.12)}
.sidebar-decision p{font-size:.68rem;line-height:1.45;margin:7px 0 9px;color:#b3c4d6}
.sidebar-decision button{padding:7px 8px;font-size:.67rem;background:#f5f9ff}
.sidebar-foot{padding:12px 8px 1px;border-top:1px solid rgba(210,173,82,.18);margin-top:auto}
.sidebar-foot strong{font-size:.69rem}.sidebar-foot small{font-size:.59rem}
.app-stage{margin-left:var(--sidebar);background:var(--tf-canvas)}
.app-topbar{
  height:var(--topbar);
  background:rgba(3,21,45,.97);
  border-bottom:1px solid rgba(210,173,82,.34);
  backdrop-filter:blur(18px);
  color:#fff;
  box-shadow:0 8px 28px rgba(2,19,40,.16);
}
.app-topbar-inner{max-width:none;padding:0 24px;grid-template-columns:minmax(240px,1fr) auto;gap:18px}
.app-brand-mark{display:none}
.app-location span{color:var(--tf-gold-soft);font-size:.61rem;letter-spacing:.13em}
.app-location strong{color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:1.04rem;letter-spacing:.01em}
.app-menu,.command-button{background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.15);color:#fff}
.on-device-badge,.hybrid-badge{
  color:#dbe8f5;
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.14);
  border-radius:7px;
  padding:8px 11px;
}
.app-main{max-width:var(--content);padding:0 18px 76px}
.app-view:not(#assistant){padding-top:20px}
.card{border-color:var(--tf-line);box-shadow:var(--shadow-sm)}
.btn{border-radius:7px}.btn-primary{background:linear-gradient(110deg,var(--tf-blue),#126ee0)}.btn-primary:hover{background:var(--tf-blue-dark)}

/* Main regulatory intelligence view */
#assistant{padding:0 0 18px}
#assistant>.section-head{display:none}
.tfbd-hero{
  min-height:312px;
  margin:0 -18px;
  padding:44px 34px 88px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#061d3b url("trade-port-hero.jpg") center/cover no-repeat;
  border-bottom:1px solid rgba(210,173,82,.42);
}
.tfbd-hero:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(2,19,42,.96) 0%,rgba(3,25,50,.87) 36%,rgba(4,31,59,.5) 64%,rgba(3,24,48,.22) 100%),linear-gradient(0deg,rgba(2,20,41,.72),transparent 55%);
}
.tfbd-hero-copy{max-width:700px;color:#fff}
.tfbd-eyebrow{display:flex;align-items:center;gap:9px;margin:0 0 9px;color:#dce9f7;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.tfbd-eyebrow:before{content:"";width:24px;height:2px;background:var(--tf-gold)}
.tfbd-hero h1{max-width:720px;margin:0;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.05rem,3.5vw,3.35rem);font-weight:700;line-height:1.04;letter-spacing:-.025em;text-wrap:balance}
.tfbd-hero h1 span{color:var(--tf-gold-soft)}
.tfbd-hero-copy>p:last-child{max-width:360px;margin:17px 0 0;color:#e0eaf4;font-size:.92rem;line-height:1.55}
.tfbd-hero-proof{
  position:absolute;
  right:26px;
  bottom:65px;
  width:min(650px,58%);
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid rgba(210,173,82,.45);
  border-radius:13px;
  overflow:hidden;
  background:rgba(3,24,48,.85);
  backdrop-filter:blur(12px);
  box-shadow:0 14px 40px rgba(0,0,0,.2);
}
.tfbd-hero-proof article{min-height:72px;display:grid;place-items:center;text-align:center;padding:10px;border-right:1px solid rgba(210,173,82,.3)}
.tfbd-hero-proof article:last-child{border-right:0}
.tfbd-hero-proof strong{display:block;color:#fff;font-size:.92rem;line-height:1.05}
.tfbd-hero-proof span{display:block;margin-top:4px;color:#d9e5f1;font-size:.61rem;line-height:1.2}
.tfbd-hero-proof b{color:var(--tf-gold-soft);font-size:1.2rem;font-family:Georgia,"Times New Roman",serif}

.tfbd-query-card{
  position:relative;
  z-index:5;
  margin:-54px 14px 12px;
  padding:18px 20px 13px;
  background:#fff;
  border:1px solid #c9d6e5;
  border-radius:13px;
  box-shadow:0 18px 48px rgba(3,27,53,.18);
}
.tfbd-query-head{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:12px}
.tfbd-query-title{display:flex;align-items:center;gap:11px}
.tfbd-query-icon{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#eaf3ff;color:var(--tf-blue);font-size:1rem;font-weight:900}
.tfbd-query-title h2{margin:0;color:#152a42;font-size:1.05rem;letter-spacing:-.01em}
.tfbd-query-mode{display:flex;align-items:center;gap:7px;color:#5e6e81;font-size:.68rem;font-weight:760;white-space:nowrap}
.tfbd-query-mode i{width:8px;height:8px;border-radius:50%;background:#2abf78;box-shadow:0 0 0 4px rgba(42,191,120,.11)}
.tfbd-mode-switch{display:flex;align-items:center;gap:3px;margin-left:auto;padding:3px;border:1px solid #cdd8e5;border-radius:8px;background:#f1f5fa}
.tfbd-mode-switch button{min-height:30px;padding:5px 9px;border:0;border-radius:6px;background:transparent;color:#61748a;font-size:.64rem;font-weight:800;cursor:pointer}
.tfbd-mode-switch button:hover{color:#174e8e}.tfbd-mode-switch button.active{background:#fff;color:#0b5fc8;box-shadow:0 2px 8px rgba(4,36,72,.1)}
.tfbd-query-card .ofi-input-wrap{max-width:none;padding:0;border:0;border-radius:0;box-shadow:none}
.tfbd-query-card .ofi-input-wrap{position:relative}
.tfbd-query-card .ofi-input-wrap textarea{
  min-height:76px;
  padding:13px 14px;
  border:1px solid #aebed1;
  border-radius:9px;
  background:#fff;
  color:#23384f;
  font-size:.86rem;
}
.tfbd-query-card .ofi-input-wrap textarea:focus{border-color:#568fd2;box-shadow:0 0 0 4px rgba(13,97,207,.08)}
.ofi-typeahead{position:absolute;left:0;right:0;top:calc(100% + 5px);z-index:40;max-height:320px;padding:6px;border:1px solid #bdcad9;border-radius:9px;background:#fff;box-shadow:0 18px 45px rgba(3,26,52,.2);overflow:auto}
.ofi-typeahead-option{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:9px 10px;border:0;border-radius:7px;background:transparent;color:#1c344e;text-align:left;cursor:pointer}
.ofi-typeahead-option:hover,.ofi-typeahead-option.active{background:#eef5ff;color:#0b55ad}.ofi-typeahead-option>span:nth-child(2){min-width:0}.ofi-typeahead-option strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.72rem}.ofi-typeahead-option small{display:block;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6e8095;font-size:.59rem}.ofi-typeahead-mark{width:25px;height:25px;display:grid;place-items:center;border-radius:7px;background:#e9f2ff;color:#0d61cf;font-size:.62rem;font-weight:900}.ofi-typeahead-option kbd{padding:3px 5px;border:1px solid #d6e0eb;border-radius:5px;background:#fff;color:#718197;font-size:.53rem;font-family:inherit}
.tfbd-query-card .ofi-suggestion-row{max-width:none;padding:9px 0 0;margin:0}
.tfbd-query-card .ofi-suggestion-row:before{content:"Try:";align-self:center;color:#68788c;font-size:.66rem;font-weight:760;white-space:nowrap}
.tfbd-query-card .ofi-suggestion-row button{padding:5px 9px;border-color:#d7e0eb;border-radius:7px;background:#f4f7fb;color:#35659b;font-size:.64rem}
.tfbd-query-card .ofi-composer-row{margin-top:10px;padding-top:10px;display:grid;grid-template-columns:minmax(150px,200px) minmax(0,1fr) auto;gap:9px}
.tfbd-query-card .ofi-scope{height:38px;border-radius:7px;border-color:#c8d4e2;background:#fff;font-size:.72rem}
.tfbd-query-card .ofi-hint{font-size:.65rem;color:#75859a}
.tfbd-query-card .ofi-composer-actions{width:auto}
.tfbd-query-card .ofi-composer-actions .btn{min-width:142px;min-height:38px;padding:8px 14px;font-size:.76rem}
.tfbd-trust-line{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:8px 10px;border:1px solid #a9c5e9;border-radius:7px;background:#f4f8ff;color:#3b5f87;font-size:.67rem;line-height:1.42}
.tfbd-trust-line strong{color:#184f91}

.tfbd-feature-strip{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  margin:0 14px 12px;
  border:1px solid var(--tf-line);
  border-radius:11px;
  overflow:hidden;
  background:#fff;
  box-shadow:var(--shadow-sm);
}
.tfbd-feature-strip article{min-height:86px;padding:13px 12px;border-right:1px solid #dce4ee}
.tfbd-feature-strip article:last-child{border-right:0}
.tfbd-feature-strip strong{display:block;color:#182e46;font-size:.72rem;line-height:1.25}
.tfbd-feature-strip span{display:block;margin-top:5px;color:#697a8f;font-size:.62rem;line-height:1.4}
.tfbd-feature-strip b{display:inline-grid;place-items:center;width:25px;height:25px;margin-bottom:7px;border-radius:7px;background:#eaf3ff;color:var(--tf-blue);font-size:.68rem}
.tfbd-feature-strip article:nth-child(2) b{background:#ebf8f1;color:#168150}
.tfbd-feature-strip article:nth-child(3) b{background:#f2ecff;color:#7450c3}
.tfbd-feature-strip article:nth-child(4) b{background:#fff2e8;color:#c56a21}
.tfbd-feature-strip article:nth-child(5) b{background:#fff0ee;color:#b42318}

.tfbd-results-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.92fr);gap:10px;margin:0 14px 12px;align-items:start}
.tfbd-answer-panel,.tfbd-evidence-card,.tfbd-insight-card,.tfbd-topics-panel{border:1px solid var(--tf-line);border-radius:11px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}
.tfbd-panel-head{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 13px;border-bottom:1px solid #dce4ee;background:#fbfdff}
.tfbd-panel-head h2,.tfbd-panel-head h3{display:flex;align-items:center;gap:8px;margin:0;color:#1b334d;font-size:.83rem;letter-spacing:0}
.tfbd-panel-head h2:before,.tfbd-panel-head h3:before{content:"";width:9px;height:9px;border-radius:3px;background:#1aaf69;box-shadow:0 0 0 3px rgba(26,175,105,.11)}
.tfbd-panel-head small{color:#738397;font-size:.61rem}
.tfbd-answer-panel .ofi-conversation{min-height:0;max-height:none;padding:12px;overflow:visible;background:#fff}
.tfbd-answer-panel .ofi-message{display:block;width:100%;max-width:none;margin:0 0 10px}
.tfbd-answer-panel .ofi-avatar{display:none}
.tfbd-answer-panel .ofi-message-label{margin:0 0 5px;font-size:.58rem}
.tfbd-answer-panel .ofi-user-text{max-width:100%;border-radius:8px;padding:9px 11px;font-size:.76rem}
.tfbd-answer-panel .ofi-answer{border:0;border-radius:0;box-shadow:none}
.tfbd-answer-panel .ofi-answer-head{padding:7px 0 11px;background:#fff}
.tfbd-answer-panel .ofi-answer-head h3{font-size:.93rem}
.tfbd-answer-panel .ofi-answer-grid{grid-template-columns:1fr;border:1px solid #d8e1eb;border-radius:9px;overflow:hidden}
.tfbd-answer-panel .ofi-answer-main{padding:12px 13px}
.tfbd-answer-panel .ofi-answer-main h4,.tfbd-answer-panel .ofi-evidence h4{font-size:.65rem}
.tfbd-answer-panel .ofi-answer-main p,.tfbd-answer-panel .ofi-answer-main li{font-size:.73rem;line-height:1.5}
.tfbd-answer-panel .ofi-evidence{padding:11px 12px;border-left:0;border-top:1px solid #dbe4ee;background:#f8fbff}
.tfbd-answer-panel .ofi-ref{padding:6px 8px;font-size:.62rem}
.tfbd-answer-panel .ofi-actions{margin-top:9px}.tfbd-answer-panel .ofi-actions button{padding:6px 8px;font-size:.62rem}
.tfbd-answer-actions{display:flex;gap:7px;flex-wrap:wrap;padding:9px 12px;border-top:1px solid #dde5ef;background:#fbfdff}
.tfbd-answer-actions .btn{min-height:34px;padding:6px 10px;font-size:.68rem}
.tfbd-evidence-stack{display:grid;gap:10px}
.tfbd-source-list{list-style:none;margin:0;padding:3px 12px 9px;counter-reset:source}
.tfbd-source-list li{counter-increment:source;display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;align-items:center;padding:10px 0;border-bottom:1px solid #e2e8f0}
.tfbd-source-list li:last-child{border-bottom:0}
.tfbd-source-list li:before{content:counter(source);width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#f1f4f8;color:#53667c;font-size:.62rem;font-weight:800}
.tfbd-source-list a{min-width:0}.tfbd-source-list strong{display:block;color:#23384f;font-size:.68rem;line-height:1.3}.tfbd-source-list span{display:block;margin-top:2px;color:#75869a;font-size:.57rem;line-height:1.3}.tfbd-source-list em{align-self:start;border-radius:6px;padding:3px 5px;background:#eaf8f0;color:#14784a;font-size:.55rem;font-style:normal;font-weight:800}
.tfbd-source-footer{display:block;margin:0 12px 11px;padding:7px 10px;border:1px solid #bdd0e8;border-radius:7px;text-align:center;color:#245c9b;font-size:.64rem;font-weight:760;background:#f7faff}
.tfbd-research-card{border-color:#b8cde8;background:linear-gradient(180deg,#fff,#f7fbff)}
.tfbd-research-card .tfbd-panel-head h3:before{background:#6e55d8;box-shadow:0 0 0 3px rgba(110,85,216,.11)}
.tfbd-research-summary{display:grid;gap:6px;padding:11px 12px 12px}.tfbd-research-summary>strong{color:#183d67;font-size:.76rem}.tfbd-research-summary>span{color:#65788f;font-size:.62rem;line-height:1.45}.tfbd-research-links{display:flex;gap:6px;margin-top:3px}.tfbd-research-links button,.tfbd-research-links a{padding:6px 8px;border:1px solid #bbcee6;border-radius:6px;background:#fff;color:#245d9f;font-size:.59rem;font-weight:800;text-decoration:none;cursor:pointer}.tfbd-research-links button:hover,.tfbd-research-links button.active,.tfbd-research-links a:hover{border-color:#7da7d8;background:#eef5ff}
.tfbd-research-sources{list-style:none;display:grid;gap:0;margin:0;padding:0 12px 11px}.tfbd-research-sources li{display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px 0;border-top:1px solid #e0e8f2}.tfbd-research-citation{width:23px;height:23px;display:grid;place-items:center;border-radius:6px;background:#eaf2ff;color:#0d61cf;font-size:.58rem;font-weight:900}.tfbd-research-sources strong{display:block;color:#233b55;font-size:.64rem}.tfbd-research-sources small{display:block;margin-top:2px;color:#76879a;font-size:.55rem}.tfbd-research-open{color:#1761b7;font-size:.58rem;font-weight:800;text-decoration:none}
.tfbd-research-message .ofi-message-body{width:100%}.tfbd-research-answer{border:1px solid #c9d8ea!important;border-radius:9px!important;background:#fff}.tfbd-research-answer .ofi-answer-head{display:flex;justify-content:space-between;gap:10px;padding:10px 12px!important;border-bottom:1px solid #dce5ef}.tfbd-research-badge{align-self:center;padding:4px 6px;border-radius:6px;background:#eaf8f1;color:#147a4b;font-size:.56rem;font-weight:850}.tfbd-research-body{padding:12px 13px}.tfbd-research-body h4{margin:0 0 6px;color:#2d4a68;font-size:.65rem;text-transform:uppercase;letter-spacing:.05em}.tfbd-research-body p{margin:0 0 12px;color:#2e4054;font-size:.73rem;line-height:1.58}.tfbd-research-verification{padding:8px 9px;border-left:3px solid #6d56d7;background:#f6f3ff;color:#584c86!important;font-size:.64rem!important}.tfbd-research-quotes{display:grid;gap:7px;margin-bottom:12px}.tfbd-research-quotes blockquote{margin:0;padding:8px 10px;border-left:3px solid #5b91cf;background:#f5f9ff;color:#425c77;font-size:.64rem;line-height:1.5}.tfbd-research-quotes blockquote span{color:#0d61cf;font-weight:900}.tfbd-research-inline-sources{display:grid;gap:6px;margin:0;padding-left:20px}.tfbd-research-inline-sources li{color:#375777;font-size:.64rem}.tfbd-research-inline-sources a{color:#155fad;font-weight:760}.tfbd-research-inline-sources small{display:block;color:#7b8b9d;font-size:.55rem}.tfbd-research-observations{margin:0 0 12px;padding:9px 10px;border:1px solid #e3c978;border-radius:7px;background:#fff9e8;color:#70510d;font-size:.62rem}.tfbd-research-observations ul{margin:5px 0 0;padding-left:18px}.tfbd-research-loading{margin:0;padding:12px;color:#60758d;font-size:.69rem}.tfbd-research-error-detail{display:block;color:#8b5d5d;font-size:.58rem}
.tfbd-insight-card dl{display:grid;grid-template-columns:120px 1fr;margin:0;padding:8px 12px 12px;font-size:.62rem}
.tfbd-insight-card dt,.tfbd-insight-card dd{margin:0;padding:6px 7px;border-bottom:1px solid #e2e8f0}
.tfbd-insight-card dt{color:#647589;background:#f8fafc;font-weight:760}.tfbd-insight-card dd{color:#283d54}
.tfbd-hold{margin:0 12px 12px;padding:9px 10px;border:1px solid #e5c56f;border-radius:7px;background:#fff8e5;color:#6c4b08;font-size:.62rem;line-height:1.42}
.tfbd-hold strong{display:block;color:#785309;margin-bottom:2px}

.tfbd-topics-panel{margin:0 14px 12px}
.tfbd-topics-panel .tfbd-panel-head h3:before{background:#7261d3;box-shadow:0 0 0 3px rgba(114,97,211,.11)}
.tfbd-topics-panel .ofi-status{font-size:.63rem}
.tfbd-topics-panel .ofi-dot{width:7px;height:7px}
.tfbd-topic-body{padding:11px 12px}
.tfbd-topics-panel .ofi-topic-list{display:flex;gap:7px;overflow:auto;scrollbar-width:thin}
.tfbd-topics-panel .ofi-topic{flex:0 0 auto;border:1px solid #d3deea;background:#f8fafc;border-radius:7px;padding:7px 9px;font-size:.65rem}
.tfbd-topics-panel .ofi-topic:hover{border-color:#9dbbe0;background:#eef5ff}
.tfbd-topics-panel .ofi-history-title{margin:10px 0 5px}.tfbd-topics-panel .ofi-history{display:flex;gap:6px;overflow:auto}.tfbd-topics-panel .ofi-history button{white-space:nowrap;border:1px solid #d6e0eb;border-radius:7px;background:#fff;padding:6px 8px;font-size:.61rem;color:#52667c}

.tfbd-disclaimer{display:flex;align-items:flex-start;gap:8px;margin:0 14px;padding:10px 12px;border:1px solid #a7c4e7;border-radius:8px;background:#e9f3ff;color:#315779;font-size:.63rem;line-height:1.45}
.tfbd-disclaimer strong{color:#124d8b}

/* All remaining workspace views inherit the same formal dashboard language. */
.app-view:not(#assistant)>.section-head{padding:17px 18px;margin:0 0 12px;border:1px solid var(--tf-line);border-radius:11px;background:linear-gradient(100deg,#fff,#f4f8fd);box-shadow:var(--shadow-sm)}
.app-view:not(#assistant)>.section-head h2{font-family:Georgia,"Times New Roman",serif;color:#0b3157}
.app-view:not(#assistant) .card{border-radius:10px}
.app-view:not(#assistant) .section-label{color:#9b7428}
.policy-supersession-hold{border-width:1px;border-left-width:4px;box-shadow:var(--shadow-sm)}

/* Independent tax and charges workspace */
.tax-workspace-intro{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(420px,.9fr);gap:18px;align-items:center;margin:0 0 12px;padding:22px 24px;border:1px solid rgba(210,173,82,.55);border-radius:11px;background:linear-gradient(112deg,#05264a,#0a4178);box-shadow:var(--shadow-sm);color:#fff;overflow:hidden}.tax-workspace-intro>div:first-child>span{display:block;margin-bottom:7px;color:var(--tf-gold-soft);font-size:.65rem;font-weight:850;letter-spacing:.1em;text-transform:uppercase}.tax-workspace-intro h3{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:1.5rem;line-height:1.15}.tax-workspace-intro p{max-width:680px;margin:8px 0 0;color:#d5e2ef;font-size:.74rem;line-height:1.5}.tax-workspace-metrics{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border:1px solid rgba(210,173,82,.38);border-radius:9px;background:rgba(2,20,40,.4)}.tax-workspace-metrics article{min-height:78px;display:grid;align-content:center;justify-items:center;padding:9px;border-right:1px solid rgba(210,173,82,.3);text-align:center}.tax-workspace-metrics article:last-child{border-right:0}.tax-workspace-metrics strong{color:var(--tf-gold-soft);font-family:Georgia,"Times New Roman",serif;font-size:1.25rem}.tax-workspace-metrics span{margin-top:4px;color:#dce8f3;font-size:.55rem;line-height:1.25}.tax-standalone-host{border:1px solid var(--tf-line);border-radius:11px;background:#fff;box-shadow:var(--shadow-sm);overflow:hidden}.tax-standalone-panel{padding:16px!important}.tax-loading{padding:28px;text-align:center;color:#6b7c90;font-size:.72rem}

.tax-workspace-intro h3{color:#fff}

/* Reference-style full footer */
.footer{border-top:1px solid rgba(210,173,82,.52);background:linear-gradient(110deg,#03152d,#05274b);color:#dce7f2}
.footer .wrap{max-width:none;padding:25px 28px 22px;display:grid;grid-template-columns:minmax(240px,1.35fr) repeat(3,minmax(120px,.7fr));gap:28px;color:#dce7f2}
.tfbd-footer-brand{display:flex;align-items:center;gap:12px}.tfbd-footer-brand img{width:58px;height:58px}.tfbd-footer-brand strong{display:block;color:#fff;font-family:Georgia,"Times New Roman",serif;font-size:1rem}.tfbd-footer-brand small{display:block;color:var(--tf-gold-soft);font-family:Georgia,"Times New Roman",serif;font-size:.68rem}
.tfbd-footer-copy{grid-column:1/-1;display:flex;justify-content:space-between;gap:15px;padding-top:13px;border-top:1px solid rgba(210,173,82,.22);color:#9fb2c5;font-size:.64rem}
.tfbd-footer-col strong{display:block;margin-bottom:8px;color:#fff;font-size:.68rem}.tfbd-footer-col a,.tfbd-footer-col button{display:block;margin:5px 0;border:0;padding:0;background:transparent;color:#c8d7e6;font-size:.66rem;text-align:left;cursor:pointer}.tfbd-footer-col a:hover,.tfbd-footer-col button:hover{color:var(--tf-gold-soft)}

@media(max-width:1180px){
  :root{--sidebar:226px}
  .tfbd-hero{padding-left:28px;padding-right:28px}
  .tfbd-hero-proof{width:min(610px,65%)}
  .tfbd-results-grid{grid-template-columns:minmax(0,1.35fr) minmax(285px,.8fr)}
}
@media(min-width:981px) and (max-width:1100px){
  .app-sidebar{transform:none!important;width:var(--sidebar)!important;box-shadow:none!important}
  .app-stage{margin-left:var(--sidebar)!important;width:auto!important}
  .app-menu{display:none!important}
  .app-topbar-inner{grid-template-columns:minmax(240px,1fr) auto!important;padding:0 20px!important}
  .app-main{padding-left:18px!important;padding-right:18px!important}
  .tfbd-hero{margin-left:-18px;margin-right:-18px}
  .tfbd-query-card .ofi-composer-row{display:grid!important;grid-template-columns:minmax(150px,190px) minmax(0,1fr) auto!important;align-items:center!important;gap:9px!important}
  .tfbd-query-card .ofi-hint{display:block!important}
  .tfbd-query-card .ofi-scope{width:100%!important}
  .tfbd-query-card .ofi-composer-actions{display:flex!important;width:auto!important}
  .tfbd-answer-panel .ofi-conversation{min-height:0!important;max-height:none!important;padding:12px!important;overflow:visible!important}
}
@media(max-width:980px){
  :root{--sidebar:244px}
  .app-sidebar{transform:translateX(-104%);width:min(310px,86vw)}.app-sidebar.open{transform:none}
  .app-stage{margin-left:0}
  .app-menu{display:grid}
  .app-topbar-inner{grid-template-columns:minmax(0,1fr) auto;padding:0 15px}
  .app-main{padding-left:14px;padding-right:14px}
  .tfbd-hero{margin:0 -14px;padding:36px 24px 104px}
  .tfbd-hero-copy>p:last-child{max-width:620px}
  .tfbd-hero-proof{left:24px;right:24px;bottom:65px;width:auto}
  .tfbd-query-card,.tfbd-feature-strip,.tfbd-results-grid,.tfbd-topics-panel,.tfbd-disclaimer{margin-left:0;margin-right:0}
  .tfbd-feature-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.tfbd-feature-strip article:nth-child(3){border-right:0}.tfbd-feature-strip article:nth-child(-n+3){border-bottom:1px solid #dce4ee}
  .tfbd-results-grid{grid-template-columns:1fr}.tfbd-evidence-stack{grid-template-columns:1.2fr .8fr}.tfbd-insight-card{min-width:0}
  .tax-workspace-intro{grid-template-columns:1fr}.tax-workspace-metrics{max-width:680px}
}
@media(max-width:760px){
  :root{--topbar:60px}
  .app-main{padding:0 10px calc(80px + var(--safe-bottom))}
  .app-topbar-actions .on-device-badge{display:flex}
  .tfbd-hero{min-height:300px;margin:0 -10px;padding:28px 16px 112px}
  .tfbd-hero h1{font-size:2rem}.tfbd-hero-copy>p:last-child{font-size:.8rem}
  .tfbd-hero-proof{left:12px;right:12px;bottom:54px}.tfbd-hero-proof article{min-height:66px;padding:7px}.tfbd-hero-proof b{font-size:1rem}.tfbd-hero-proof span{font-size:.54rem}
  .tfbd-query-card{margin-top:-38px;padding:14px 12px 11px;border-radius:11px}
  .tfbd-query-head{align-items:flex-start;flex-wrap:wrap}.tfbd-query-mode{display:none}.tfbd-mode-switch{order:3;width:100%;margin:0}.tfbd-mode-switch button{flex:1}
  .tfbd-query-card .ofi-input-wrap textarea{min-height:82px}
  .tfbd-query-card .ofi-composer-row{grid-template-columns:1fr auto}.tfbd-query-card .ofi-hint{display:none}.tfbd-query-card .ofi-composer-actions .btn{min-width:110px}
  .tfbd-feature-strip{grid-template-columns:1fr 1fr}.tfbd-feature-strip article,.tfbd-feature-strip article:nth-child(3){border-right:1px solid #dce4ee;border-bottom:1px solid #dce4ee}.tfbd-feature-strip article:nth-child(2n){border-right:0}.tfbd-feature-strip article:last-child{grid-column:1/-1;border-right:0;border-bottom:0}
  .tfbd-results-grid{display:block}.tfbd-evidence-stack{display:grid;grid-template-columns:1fr;margin-top:10px}
  .tax-workspace-intro{padding:18px 16px}.tax-workspace-intro h3{font-size:1.25rem}.tax-workspace-metrics{grid-template-columns:1fr}.tax-workspace-metrics article{min-height:58px;border-right:0;border-bottom:1px solid rgba(210,173,82,.3)}.tax-workspace-metrics article:last-child{border-bottom:0}.tax-standalone-panel{padding:11px!important}
  .tfbd-answer-panel .ofi-answer-main p,.tfbd-answer-panel .ofi-answer-main li{font-size:.78rem}
  .tfbd-insight-card dl{grid-template-columns:110px 1fr}
  .tfbd-topics-panel .ofi-shell-head{display:flex}.tfbd-topics-panel .ofi-status span:last-child{max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .footer .wrap{padding-bottom:96px;grid-template-columns:1fr 1fr}.tfbd-footer-brand{grid-column:1/-1}.tfbd-footer-copy{display:grid}
}
@media(max-width:520px){
  .app-location span{font-size:.54rem}.app-location strong{max-width:190px;font-size:.86rem}
  .on-device-badge{font-size:0;padding:8px}.on-device-badge i{margin:0}
  .tfbd-hero{min-height:310px;padding-top:23px}.tfbd-eyebrow{font-size:.6rem}.tfbd-hero h1{font-size:1.72rem}.tfbd-hero-copy>p:last-child{font-size:.74rem;line-height:1.48}
  .tfbd-hero-proof{grid-template-columns:repeat(2,1fr)}.tfbd-hero-proof article{min-height:48px;border-bottom:1px solid rgba(210,173,82,.28)}.tfbd-hero-proof article:nth-child(2){border-right:0}.tfbd-hero-proof article:nth-child(n+3){border-bottom:0}
  .tfbd-query-card{margin-top:-28px}.tfbd-query-icon{width:30px;height:30px}.tfbd-query-title h2{font-size:.9rem}
  .ofi-typeahead-option{grid-template-columns:25px minmax(0,1fr)}.ofi-typeahead-option kbd{display:none}
  .tfbd-query-card .ofi-composer-row{grid-template-columns:1fr}.tfbd-query-card .ofi-composer-actions{width:100%}.tfbd-query-card .ofi-composer-actions .btn{width:100%}
  .tfbd-feature-strip{grid-template-columns:1fr}.tfbd-feature-strip article,.tfbd-feature-strip article:nth-child(3),.tfbd-feature-strip article:nth-child(2n){grid-column:auto;border-right:0;border-bottom:1px solid #dce4ee;min-height:0}.tfbd-feature-strip article:last-child{border-bottom:0}
  .tfbd-panel-head{align-items:flex-start}.tfbd-panel-head small{display:none}
  .tfbd-source-list li{grid-template-columns:22px minmax(0,1fr)}.tfbd-source-list em{grid-column:2;justify-self:start}
  .tfbd-insight-card dl{grid-template-columns:94px 1fr}
  .tfbd-disclaimer{font-size:.6rem}
  .footer .wrap{grid-template-columns:1fr}.tfbd-footer-brand,.tfbd-footer-copy{grid-column:auto}.tfbd-footer-col{padding-top:5px;border-top:1px solid rgba(255,255,255,.08)}
}

@media print{
  .tfbd-hero,.tfbd-query-card,.tfbd-feature-strip,.tfbd-results-grid,.tfbd-topics-panel,.tfbd-disclaimer{display:none!important}
}

@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
