@import url('/base.css');

/* Rocketlane reference UI: minimal, airy, monochrome, task-oriented. */
:root { --accent-blue:#111111; --accent-blue-hover:#000000; --ref-sidebar:#f8f8f8; --ref-border:#e5e7eb; }
.icon-button,.btn-composer-icon,.paused-indicator-btn,.conversation-actions-btn,.menu-icon,.close-settings-btn,.close-popover-btn{display:inline-flex!important;align-items:center;justify-content:center}
.icon-button svg,.btn-composer-icon svg,.paused-indicator-btn svg,.conversation-actions-btn svg,.menu-icon svg,.close-settings-btn svg,.close-popover-btn svg{display:block;width:18px;height:18px;fill:none!important;stroke:currentColor!important;stroke-width:1.55!important;stroke-linecap:round;stroke-linejoin:round}

@media (min-width:769px){
.mobile-menu-btn,#mobile-new-chat-btn,.mobile-new-chat-btn,#composer-plus-btn,.btn-composer-plus,#sidebar-close-btn,.sidebar-close-btn,#settings-toggle-btn,.settings-toggle-btn,.brand-header-mobile{display:none!important}
.sidebar{width:280px!important;background:var(--ref-sidebar)!important;border-right:1px solid var(--ref-border)!important}.sidebar-top{padding:24px 20px!important;border-bottom:1px solid var(--ref-border)!important}.brand{margin-bottom:20px!important}.brand-title{font-size:21px!important;font-weight:700!important;letter-spacing:-.03em!important}.brand-subtitle{margin-top:3px!important;font-size:12px!important;color:#6b7280!important}.new-conversation-btn{min-height:44px!important;padding:10px 14px!important;border:1px solid var(--ref-border)!important;border-radius:11px!important;background:#fff!important;font-size:13px!important;font-weight:600!important}
.main-header{height:56px!important;min-height:56px!important;padding:0 24px!important;justify-content:flex-end!important;border-bottom:1px solid var(--ref-border)!important}.header-actions{display:flex;align-items:center;gap:8px}.active-task-pill{display:inline-flex!important;align-items:center;gap:7px;min-height:30px;padding:5px 11px;border:1px solid var(--ref-border);border-radius:999px;background:#fff;color:#374151;font-size:12px;font-weight:500}.active-pill-dot{color:#16a34a!important;font-size:11px}.active-pill-text{display:inline!important}.paused-indicator-btn{width:32px;height:32px;padding:0;border:0;border-radius:8px;background:transparent;color:#6b7280}
.history-nav{padding:22px 16px!important;gap:22px!important}.history-section-header{padding-left:4px!important;margin-bottom:8px!important;color:#9ca3af!important;font-size:10px!important;font-weight:700!important;letter-spacing:.08em!important}.task-tree-header{cursor:pointer;display:flex;justify-content:space-between;align-items:center}.tree-toggle-icon{font-size:12px;color:#9ca3af}.task-tree-container{position:relative;padding:2px 0 4px 8px}.task-tree-container.collapsed{display:none}.task-tree-node{position:relative;display:flex;align-items:flex-start;gap:9px;min-height:40px;padding:7px 6px 7px 10px;border-radius:9px}.task-tree-node::before{content:'';position:absolute;left:2px;top:15px;width:7px;height:7px;border-radius:50%;background:#111}.task-tree-node::after{content:'';position:absolute;left:5px;top:23px;bottom:-5px;width:1px;background:#d1d5db}.task-tree-node:last-child::after{display:none}.task-tree-node-content{min-width:0}.task-tree-node-title{font-size:13px;font-weight:600;color:#111;line-height:1.3}.task-tree-node-meta{margin-top:2px;font-size:11px;color:#9ca3af}.task-tree-status{display:inline-flex;margin-left:5px;padding:2px 7px;border-radius:999px;background:#f0f1f2;color:#4b5563;font-size:10px;font-weight:600;vertical-align:1px}.history-section{gap:3px!important}.history-item-row{position:relative;display:flex;align-items:center;min-width:0}.history-item-row .history-item{flex:1;min-width:0;padding:9px 30px 9px 8px!important;border-radius:9px!important;font-size:12px!important}
.sidebar-bottom{padding:14px 16px 18px!important;border-top:1px solid var(--ref-border)!important}.sidebar-bottom>div[style*="display: none"]{display:block!important;position:relative;margin:0 0 9px!important;min-height:54px;padding:9px 30px 9px 43px!important;border:1px solid var(--ref-border);border-radius:11px;background:#fff}.sidebar-bottom>div[style*="display: none"]::before{content:'S';position:absolute;left:10px;top:10px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:#eef0f2;color:#4b5563;font-size:11px;font-weight:700}.sidebar-bottom>div[style*="display: none"]::after{content:'›';position:absolute;right:11px;top:13px;color:#9ca3af;font-size:17px;line-height:20px}#sidebar-user-email{display:block!important;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px!important;line-height:1.35!important;color:#4b5563!important}#sidebar-connection-status{display:block!important;margin-top:2px;font-size:10px!important;line-height:1.3;color:#9ca3af!important}#sidebar-connection-status.connected::before{content:'• ';color:#6b7280}.sidebar-actions{display:flex!important;flex-direction:column!important;gap:2px!important}.sidebar-action-btn{width:100%!important;min-height:38px!important;padding:8px 10px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#4b5563!important;font-size:13px!important;font-weight:500!important;text-align:left!important;display:flex!important;align-items:center;gap:10px}.sidebar-action-btn:hover{background:#eceef0!important;color:#111!important}#sidebar-settings-toggle-btn::before{content:'';width:18px;height:18px;flex:0 0 18px;background:center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8.5a3.5 3.5 0 1 0 0 7 3.5 3.5 0 0 0 0-7Z'/%3E%3Cpath d='m19 13-1.7.5a6.5 6.5 0 0 1-.7 1.7l1 1.6-1.6 1.6-1.5-1a6.5 6.5 0 0 1-1.7.7L12.3 20h-2.2l-.5-1.7a6.5 6.5 0 0 1-1.7-.7l-1.5 1-1.6-1.6 1-1.5a6.5 6.5 0 0 1-.7-1.7L3.4 13v-2l1.7-.5a6.5 6.5 0 0 1 .7-1.7l1-1.5 1.6 1.6-1 1.5a6.5 6.5 0 0 1 .7 1.7l1.7.5v2Z'/%3E%3C/svg%3E")}.logout-btn::before{content:'';width:18px;height:18px;flex:0 0 18px;background:center/18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 17l5-5-5-5M15 12H3M21 19V5a2 2 0 0 0-2-2h-4'/%3E%3C/svg%3E")}
.chat-history{padding:32px 24px 10px!important}.chat-empty-state{max-width:560px!important;margin:82px auto 0!important}.chat-empty-state h3{font-size:18px!important;line-height:1.4;margin-bottom:0!important}.chat-empty-state .example-prompts{display:none!important}.conversation-content{width:min(100%,760px)!important}.chat-footer{padding:0 24px 22px!important}.chat-form{width:min(100%,760px)!important;margin:0 auto!important;min-height:60px!important;max-height:120px!important;padding:7px 8px 7px 18px!important;border:1px solid var(--ref-border)!important;border-radius:17px!important;background:#fff!important}.chat-form textarea{font-size:15px!important;line-height:1.45!important}.composer-actions{gap:7px!important}.btn-composer-icon,#pause-task-btn:not(.hidden),#send-btn{width:38px!important;height:38px!important;min-width:38px!important;border-radius:10px!important}#pause-task-btn:not(.hidden){background:#fff!important;color:#111!important;border:1px solid var(--ref-border)!important}#send-btn{background:#e5e7eb!important;color:#111!important;border:1px solid #e5e7eb!important}#send-btn:not(:disabled){background:#111!important;color:#fff!important;border-color:#111!important}.conversation-actions-btn{opacity:0;position:absolute;right:5px;top:50%;transform:translateY(-50%);width:28px;height:28px;border:0;border-radius:8px;background:transparent;color:#6b7280}.history-item-row:hover .conversation-actions-btn,.conversation-actions-btn:focus-visible{opacity:1}.conversation-actions-btn:hover{background:#eef0f2;color:#111}.conversation-actions-menu{position:absolute;z-index:50;right:4px;top:calc(100% - 4px);width:156px;padding:5px;border:1px solid var(--ref-border);border-radius:12px;background:#fff;box-shadow:0 12px 28px rgba(0,0,0,.12)}.conversation-actions-menu button{width:100%;min-height:36px;border:0;border-radius:8px;background:transparent;display:flex;align-items:center;gap:9px;padding:0 9px;color:#111;font:inherit;font-size:13px;text-align:left;cursor:pointer}.conversation-actions-menu button:hover{background:#f5f5f5}.conversation-actions-menu button.danger{color:#b42318}
}

@media (max-width:768px){
html,body{height:100%;min-height:100%;background:#212121!important;color:#ececec!important}
body{font-size:15px;overflow:hidden}
.workspace-layout,.main-content{height:100dvh;min-height:0;background:#212121!important}

/* Header: Quiet, Dark, Minimal */
.main-header{
  height:52px!important;min-height:52px!important;padding:0 12px!important;
  background:#212121!important;border-bottom:1px solid rgba(255,255,255,0.08)!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;position:relative;
}
.mobile-menu-btn{
  position:static!important;display:inline-flex!important;align-items:center;justify-content:center;
  width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;
  border:none!important;border-radius:8px!important;background:transparent!important;color:#ececec!important;
  box-shadow:none!important;cursor:pointer;
}
.mobile-menu-btn svg{display:block!important;width:20px;height:20px;stroke:#ececec!important}
.mobile-menu-btn::before{display:none!important}
.brand-header-mobile{
  display:block!important;position:absolute;left:50%;transform:translateX(-50%);
  font-size:16px!important;font-weight:600!important;color:#ececec!important;letter-spacing:-0.01em;
  pointer-events:none;z-index:10;
}
.header-actions{display:flex;align-items:center;gap:4px;z-index:20}
.mobile-new-chat-btn{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;
  border:none!important;border-radius:8px!important;background:transparent!important;color:#ececec!important;
  box-shadow:none!important;cursor:pointer;
}
.mobile-new-chat-btn svg{display:block!important;width:19px;height:19px;stroke:#ececec!important}
#settings-toggle-btn,.settings-toggle-btn{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:38px!important;height:38px!important;min-width:38px!important;padding:0!important;
  border:none!important;border-radius:8px!important;background:transparent!important;color:#8e8e8e!important;
  box-shadow:none!important;cursor:pointer;
}
#settings-toggle-btn:hover,.settings-toggle-btn:hover{background:rgba(255,255,255,0.08)!important;color:#ececec!important}
#settings-toggle-btn svg,.settings-toggle-btn svg{width:19px;height:19px;stroke:currentColor!important}

.active-task-pill{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:26px;height:26px;min-height:26px;padding:0!important;
  border:1px solid rgba(255,255,255,0.12)!important;border-radius:50%;background:#2f2f2f!important;color:#ececec!important;
}
.active-pill-dot{color:#22c55e!important;font-size:10px;line-height:1}
.active-pill-text{display:none!important}
.paused-indicator-btn{
  width:28px;height:28px;padding:0;border:none!important;border-radius:6px;background:#2f2f2f!important;color:#ececec!important;box-shadow:none!important;
}

/* Sidebar Drawer: ChatGPT Dark Style */
.sidebar-backdrop{
  position:fixed;top:0;left:0;right:0;bottom:0;
  background:rgba(0,0,0,0.65)!important;backdrop-filter:blur(3px);z-index:1099;
}
.sidebar{
  position:fixed!important;top:0;left:0;bottom:0;z-index:1100;
  width:min(320px,84vw)!important;background:#171717!important;
  border-right:1px solid rgba(255,255,255,0.08)!important;box-shadow:16px 0 40px rgba(0,0,0,0.5)!important;
  transform:translateX(-100%);transition:transform 0.22s cubic-bezier(0.16,1,0.3,1)!important;
  display:flex!important;flex-direction:column!important;justify-content:space-between!important;
}
.sidebar.mobile-open{transform:translateX(0)!important}
.sidebar-top{padding:18px 14px 14px!important;border-bottom:1px solid rgba(255,255,255,0.08)!important;background:#171717!important}
.sidebar-top-header{display:flex;align-items:flex-start;justify-content:space-between}
.sidebar-close-btn{
  display:inline-flex!important;align-items:center;justify-content:center;
  width:34px!important;height:34px!important;min-width:34px!important;
  border:none!important;border-radius:8px!important;background:transparent!important;
  color:#8e8e8e!important;cursor:pointer;margin-top:-2px;margin-right:-4px;box-shadow:none!important;
}
.sidebar-close-btn:hover{background:#212121!important;color:#ececec!important}
.sidebar-close-btn svg{width:19px;height:19px;stroke:currentColor!important}

.brand-title{font-size:18px!important;font-weight:600!important;color:#ececec!important}
.brand-subtitle{font-size:11px!important;color:#8e8e8e!important;margin-top:2px}
.new-conversation-btn{
  min-height:42px!important;margin-top:12px;font-size:13px!important;font-weight:500!important;
  border-radius:10px!important;background:#212121!important;border:1px solid rgba(255,255,255,0.12)!important;color:#ececec!important;
}
.new-conversation-btn:hover{background:#2a2a2a!important}
.history-nav{padding:14px 10px!important;background:#171717!important;gap:16px!important}
.history-section-header{color:#8e8e8e!important;font-size:11px!important;font-weight:600!important;letter-spacing:0.06em!important;padding-left:8px!important}
.history-item-row{min-height:38px;margin-bottom:2px}
.history-item-row .history-item{
  min-height:38px;padding:8px 10px!important;font-size:13px!important;
  border-radius:8px!important;background:transparent!important;color:#d1d5db!important;
}
.history-item-row .history-item:hover{background:#212121!important;color:#ffffff!important}
.conversation-actions-btn{
  background:transparent!important;border:none!important;color:#8e8e8e!important;
  opacity:1!important;border-radius:6px!important;box-shadow:none!important;
}
.conversation-actions-btn:hover,.conversation-actions-btn:focus-visible{background:#282828!important;color:#ffffff!important}
.conversation-actions-menu{
  background:#212121!important;border:1px solid rgba(255,255,255,0.12)!important;border-radius:12px!important;
  box-shadow:0 12px 28px rgba(0,0,0,0.6)!important;
}
.conversation-actions-menu button{color:#ececec!important;font-size:13px!important}
.conversation-actions-menu button:hover{background:#2f2f2f!important}
.sidebar-bottom{
  padding:12px 14px calc(14px + env(safe-area-inset-bottom))!important;
  border-top:1px solid rgba(255,255,255,0.08)!important;background:#171717!important;
}
.sidebar-bottom>div[style*="display: none"]{
  display:block!important;position:relative;margin:0 0 8px!important;padding:10px 14px 10px 42px!important;
  border:1px solid rgba(255,255,255,0.08)!important;border-radius:12px!important;background:#212121!important;
}
.sidebar-bottom>div[style*="display: none"]::before{
  content:'C';position:absolute;left:10px;top:50%;width:24px;height:24px;transform:translateY(-50%);
  display:flex;align-items:center;justify-content:center;border-radius:50%;background:#333333;color:#ececec;font-size:10px;font-weight:700;
}
.sidebar-bottom>div[style*="display: none"]::after{display:none}
#sidebar-user-email{display:block!important;font-size:12px!important;color:#ececec!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#sidebar-connection-status{display:block!important;margin-top:2px;font-size:10px!important;color:#8e8e8e!important}
#sidebar-connection-status.connected::before{content:'• ';color:#22c55e}
.sidebar-actions{flex-direction:column!important;gap:2px!important}
.sidebar-action-btn{
  min-height:38px!important;font-size:13px!important;border:none!important;border-radius:8px!important;
  background:transparent!important;color:#d1d5db!important;display:flex!important;align-items:center;gap:10px;
}
.sidebar-action-btn:hover{background:#212121!important;color:#ffffff!important}

/* Chat Canvas & Messages: ChatGPT Dark */
.chat-history{
  min-height:0;padding:16px 14px 10px!important;overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:#212121!important;
}
#chat-history:has(.conversation-content .message-row:not(#chat-loading)) #chat-empty-state,
#chat-history:has(.conversation-content .message-bubble) #chat-empty-state,
#chat-history:has(.conversation-content .bubble-user) #chat-empty-state,
#chat-history:has(.conversation-content .bubble-agent) #chat-empty-state,
.chat-history:has(.conversation-content .message-row:not(#chat-loading)) .chat-empty-state,
.chat-history:has(.conversation-content .message-bubble) .chat-empty-state,
.chat-history:has(.conversation-content .bubble-user) .chat-empty-state,
.chat-history:has(.conversation-content .bubble-agent) .chat-empty-state{
  display:none!important;
}
.chat-empty-state{
  width:100%;max-width:520px;margin:40px auto 0!important;padding:0 4px;text-align:center;
}
.chat-empty-state h3{
  font-size:19px!important;line-height:1.35;margin-bottom:18px!important;color:#ececec!important;font-weight:600;
}
.chat-empty-state .example-btn{
  background:#2f2f2f!important;border:1px solid rgba(255,255,255,0.08)!important;color:#d1d5db!important;
  border-radius:12px!important;padding:10px 14px!important;font-size:13px!important;margin-bottom:8px;
}
.conversation-content{width:100%!important;padding:0 2px}
.bubble-user{display:flex;justify-content:flex-end;margin-bottom:16px}
.bubble-user .bubble-content{
  background:#2f2f2f!important;color:#ffffff!important;border-radius:18px 18px 4px 18px!important;
  padding:10px 15px!important;max-width:85%!important;font-size:15px!important;line-height:1.5!important;
  box-shadow:0 1px 3px rgba(0,0,0,0.15);
}
.bubble-agent{display:flex;justify-content:flex-start;margin-bottom:16px}
.bubble-agent .bubble-content{
  background:transparent!important;color:#ececec!important;border:none!important;
  padding:4px 2px!important;max-width:100%!important;font-size:15px!important;line-height:1.55!important;
}
.bubble-agent .conflict-card, .bubble-agent .confirmation-card{
  background:#2f2f2f!important;border:1px solid rgba(255,255,255,0.12)!important;border-radius:14px!important;
  padding:14px!important;margin-top:8px!important;color:#ececec!important;
}

/* Composer: Rounded ChatGPT Pill */
.chat-footer{
  padding:6px 12px calc(10px + env(safe-area-inset-bottom))!important;
  background:linear-gradient(180deg, rgba(33,33,33,0) 0%, #212121 35%)!important;
}
.chat-form{
  width:100%!important;max-width:760px!important;margin:0 auto!important;
  min-height:52px!important;max-height:130px!important;
  gap:6px;padding:6px 8px 6px 10px!important;
  background:#2f2f2f!important;border:1px solid rgba(255,255,255,0.12)!important;border-radius:26px!important;
  display:flex!important;align-items:flex-end!important;box-shadow:0 4px 16px rgba(0,0,0,0.25)!important;
}
.btn-composer-plus{
  width:34px!important;height:34px!important;min-width:34px!important;
  border-radius:50%!important;background:rgba(255,255,255,0.12)!important;
  border:1px solid rgba(255,255,255,0.08)!important;color:#ececec!important;
  margin-bottom:2px!important;display:inline-flex!important;align-items:center;justify-content:center;
  cursor:pointer;box-shadow:none!important;transition:background 0.15s ease;
}
.btn-composer-plus:hover{background:rgba(255,255,255,0.18)!important}
.btn-composer-plus svg{width:18px;height:18px;stroke:#ececec!important;stroke-width:2!important}
.chat-form textarea{
  min-height:34px;max-height:110px;font-size:16px!important;line-height:1.45;
  padding:6px 4px 6px 4px!important;background:transparent!important;border:none!important;
  color:#ffffff!important;outline:none!important;resize:none!important;flex:1;
  scrollbar-width:none!important;-ms-overflow-style:none!important;
}
.chat-form textarea::-webkit-scrollbar{display:none!important}
.chat-form textarea::placeholder{color:#8e8e8e!important}
.composer-actions{display:flex;align-items:center;gap:6px;margin-bottom:2px}
.btn-composer-icon,#pause-task-btn:not(.hidden),#send-btn{
  width:34px!important;height:34px!important;min-width:34px!important;border-radius:50%!important;
}
#pause-task-btn,
.btn-composer-icon#pause-task-btn{
  background:rgba(255,255,255,0.12)!important;color:#ececec!important;
  border:1px solid rgba(255,255,255,0.12)!important;box-shadow:none!important;
}
#pause-task-btn:hover{background:rgba(255,255,255,0.18)!important}
#pause-task-btn.hidden{display:none!important}
#send-btn{background:#424242!important;color:#757575!important;border:none!important;transition:all 0.15s ease;box-shadow:none!important}
#send-btn:not(:disabled){background:#ffffff!important;color:#000000!important;cursor:pointer}
#send-btn svg{width:18px;height:18px;stroke:currentColor!important;stroke-width:2!important;transform:translateY(-0.5px)}

/* Examples Footer */
.examples-footer{
  display:flex!important;gap:6px!important;overflow-x:auto!important;padding:6px 2px 2px!important;
}
.examples-label{color:#8e8e8e!important;font-size:11px!important;align-self:center}
.example-link-btn{
  background:rgba(255,255,255,0.06)!important;border:1px solid rgba(255,255,255,0.08)!important;
  color:#b4b4b4!important;border-radius:999px!important;padding:4px 10px!important;font-size:11px!important;
  white-space:nowrap!important;
}

/* Modals & Dropdowns: Dark */
.settings-dropdown{background:rgba(0,0,0,0.7)!important;align-items:flex-end;padding:12px}
.settings-dropdown-content{
  width:100%;max-width:520px;margin:0;border-radius:18px;background:#212121!important;
  border:1px solid rgba(255,255,255,0.12)!important;color:#ececec!important;
  max-height:min(560px,calc(100dvh - 24px));overflow:hidden;box-shadow:0 18px 50px rgba(0,0,0,0.6)!important;
}
.settings-dropdown-header{min-height:54px;padding:0 16px;border-bottom:1px solid rgba(255,255,255,0.08)!important}
.settings-dropdown-header h3{font-size:18px;color:#ececec!important}
.settings-label{color:#8e8e8e!important}
.settings-value{color:#ececec!important}
.close-settings-btn,.close-popover-btn{width:34px;height:34px;color:#ececec!important}
@media(max-width:390px){
.main-header{padding:0 8px!important}
.chat-history{padding:12px 10px 8px!important}
.chat-footer{padding:4px 8px calc(8px + env(safe-area-inset-bottom))!important}
}
}
