.gmail {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  color: #000;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.gmail a { color: #0000cc; text-decoration: underline; cursor: pointer; }
.gmail a:visited { color: #551a8b; }

.g-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 12px 6px;
  gap: 12px;
  flex: none;
}

.g-logo {
  font-family: 'Arial Rounded MT Bold', 'Helvetica Rounded', 'Trebuchet MS', Arial, sans-serif;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -1px;
  line-height: 1;
  cursor: default;
  white-space: nowrap;
}

.g-logo .lg-g { color: #2664c1; }
.g-logo .lg-m { color: #c12626; }
.g-logo .lg-a { color: #e3a426; }
.g-logo .lg-i { color: #2664c1; }
.g-logo .lg-l { color: #c12626; }

.g-beta {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
  color: #fff;
  background: #c12626;
  padding: 1px 4px;
  vertical-align: super;
  letter-spacing: 0.5px;
  border-radius: 2px;
  margin-left: 3px;
}

.g-head-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }

.g-toplinks { font-size: 11px; }
.g-toplinks a { margin-left: 8px; }

.g-searchrow { display: flex; align-items: center; gap: 5px; }

.g-search-input {
  width: 250px;
  height: 20px;
  border: 1px solid #7b9ebd;
  padding: 1px 4px;
  font-family: Arial, sans-serif;
  font-size: 12px;
  outline: none;
}

.g-search-btn {
  background: #4d72d6;
  color: #fff;
  border: 1px solid #2f55b0;
  font-size: 11px;
  font-weight: bold;
  font-family: Arial, sans-serif;
  padding: 2px 12px;
  height: 22px;
  cursor: pointer;
}

.g-search-btn:active { background: #3a5fc4; }

.g-search-links { font-size: 11px; }
.g-search-links a { margin-left: 6px; }

.g-bluebar {
  height: 4px;
  background: #c3d9ff;
  flex: none;
}

.g-body {
  display: flex;
  align-items: stretch;
  flex: 1;
}

.g-nav {
  width: 152px;
  flex: none;
  background: #e8eefa;
  padding: 10px 0 16px;
  font-size: 12px;
  border-right: 1px solid #c3d9ff;
}

.g-nav a { text-decoration: none; }
.g-nav a:hover { text-decoration: underline; }

.g-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  color: #0000cc;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
}

.g-nav-item .nav-count { font-weight: bold; }

.g-nav-item.active {
  background: #c3d9ff;
  color: #000;
  font-weight: bold;
}

.g-nav-item.compose { font-weight: bold; margin-bottom: 6px; }

.g-nav-section {
  margin: 12px 12px 3px;
  font-size: 11px;
  font-weight: bold;
  color: #555;
  cursor: default;
}

.g-label-swatch {
  width: 9px;
  height: 9px;
  flex: none;
  border: 1px solid rgba(0,0,0,0.25);
}

.g-main {
  flex: 1;
  min-width: 0;
  padding: 8px 12px 4px;
  display: flex;
  flex-direction: column;
}

.g-actions {
  font-size: 11px;
  padding: 2px 0 4px;
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
}

.g-actions a { margin: 0 4px; }
.g-actions .pipe { color: #999; }

.g-dropdown-anchor { position: relative; display: inline-block; }

.g-menu {
  position: absolute;
  left: 0;
  top: 100%;
  background: #fff;
  border: 1px solid #7b9ebd;
  box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  min-width: 150px;
  z-index: 200;
  padding: 2px 0;
  font-size: 12px;
}

.g-menu-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 14px 3px 8px;
  cursor: default;
  white-space: nowrap;
  color: #0000cc;
}

.g-menu-item:hover { background: #c3d9ff; color: #000; }

.g-select-row { font-size: 11px; color: #333; padding: 0 0 4px; }
.g-select-row a { margin: 0 3px; }

.g-welcome {
  background: #ffffcc;
  border: 1px solid #e8e19a;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  position: relative;
}

.g-welcome b { font-size: 13px; }

.g-welcome .w-close {
  position: absolute;
  top: 4px;
  right: 8px;
  color: #0000cc;
  cursor: pointer;
  font-size: 12px;
}

.g-undo {
  background: #fff8c4;
  border: 1px solid #e8d98a;
  padding: 5px 12px;
  margin-bottom: 8px;
  font-size: 12px;
}

.g-undo a { margin-left: 8px; font-weight: bold; }

.g-folder-head {
  font-size: 15px;
  font-weight: bold;
  padding: 2px 0 6px;
  color: #222;
}

.g-list { width: 100%; border-collapse: collapse; }

.g-row { height: 23px; cursor: default; }
.g-row td { padding: 2px 4px; vertical-align: middle; border-bottom: 1px solid #f2f2f2; }
.g-row:hover td { background: #ffffcc; }
.g-row.checked td { background: #c3d9ff; }
.g-row.current td { background: #ffffcc; box-shadow: inset 0 0 0 1px #e8d37e; }
.g-row.checked.current td { background: #c3d9ff; box-shadow: inset 0 0 0 1px #7a9ede; }

.g-cell-check { width: 18px; }
.g-cell-star { width: 20px; }

.g-star { cursor: pointer; display: inline-block; line-height: 0; }

.g-cell-from {
  width: 135px;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: #333;
}

.g-cell-subj {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: 0;
  width: 40%;
  font-size: 12.5px;
}

.g-subj { color: #000; }
.g-row.unread .g-subj { font-weight: bold; }
.g-row.unread .g-cell-from { font-weight: bold; color: #000; }

.g-snippet { color: #888; font-size: 12px; }
.g-row.unread .g-snippet { color: #666; }

.g-label-tag { font-size: 11px; }

.g-draft .g-subj { color: #cc0000; }

.g-cell-date {
  width: 118px;
  text-align: right;
  white-space: nowrap;
  color: #888;
  font-size: 11px;
}

.g-pagination {
  font-size: 11px;
  color: #666;
  text-align: right;
  padding: 6px 2px;
}

.g-pagination a { margin: 0 5px; }
.g-pagination .pg-off { color: #bbb; margin: 0 5px; }

.g-empty { color: #888; font-style: italic; padding: 24px 0; text-align: center; font-size: 12px; }

.g-banner-note {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  padding: 6px 10px;
  font-size: 11px;
  color: #555;
  margin-bottom: 8px;
}

.g-banner-note a { margin-left: 6px; }

.g-sponsored {
  width: 195px;
  flex: none;
  padding: 10px 12px 10px 10px;
  font-size: 11px;
  border-left: 1px solid #eee;
}

.g-sponsored h4 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: bold;
  color: #333;
}

.g-ad { margin-bottom: 12px; line-height: 1.35; }
.g-ad .ad-title { color: #0000cc; font-weight: bold; text-decoration: underline; cursor: pointer; display: block; }
.g-ad .ad-desc { color: #333; display: block; margin: 1px 0; }
.g-ad .ad-url { color: #008000; font-size: 10px; }

.g-bottom { flex: none; padding: 10px 12px 6px; text-align: center; }

.g-storage { font-size: 11px; color: #444; line-height: 1.5; }
.g-storage .dont-delete { color: #888; }

.g-footer {
  font-size: 11px;
  color: #888;
  padding: 6px 0 14px;
  text-align: center;
}

.g-footer a { margin: 0 4px; }

.g-loading {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 24px;
  background: #fff;
}

.g-loading .g-logo { margin-bottom: 26px; }

.g-loadbar {
  width: 320px;
  height: 14px;
  border: 1px solid #999;
  background: #f0f0f0;
  padding: 1px;
}

.g-loadbar .fill {
  height: 100%;
  width: 30%;
  background: #4d72d6;
  animation: gload 1.6s ease-in-out infinite;
}

@keyframes gload {
  0% { width: 5%; }
  55% { width: 78%; }
  100% { width: 96%; }
}

.g-loadmsg { margin-top: 10px; font-size: 12px; color: #666; font-style: italic; }

.g-conv-back { font-size: 11px; padding: 2px 0 6px; }

.g-conv-subject {
  font-size: 17px;
  font-weight: bold;
  margin: 0 0 2px;
  color: #111;
}

.g-conv-meta { font-size: 11px; color: #666; padding-bottom: 6px; }
.g-conv-meta .g-label-tag { margin-right: 6px; }

.g-expand-links { font-size: 11px; text-align: right; padding: 2px 0; }
.g-expand-links a { margin-left: 8px; }

.g-msg {
  border: 1px solid #d5d5d5;
  margin-bottom: 8px;
  background: #fff;
}

.g-msg-hdr {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 5px 10px;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  font-size: 12px;
}

.g-msg-sender { font-weight: bold; color: #222; }
.g-msg-addr { color: #888; font-size: 11px; }
.g-msg-to { color: #888; font-size: 11px; }
.g-msg-date { margin-left: auto; color: #888; font-size: 11px; white-space: nowrap; }

.g-msg-body { padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.g-msg-body p { margin: 0 0 9px; }

.g-msg-atts { padding: 0 12px 8px; }

.g-att {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  padding: 2px 8px;
  font-size: 11px;
  margin: 0 6px 4px 0;
  color: #0000cc;
  cursor: pointer;
}

.g-msg-foot { padding: 4px 12px 10px; font-size: 11px; }
.g-msg-foot a { margin-right: 10px; }

.g-msg-collapsed {
  border: 1px solid #e2e2e2;
  margin-bottom: 8px;
  padding: 4px 10px;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  background: #fbfbfb;
  cursor: pointer;
}

.g-msg-collapsed:hover { background: #ffffcc; }
.g-msg-collapsed .mc-sender { font-weight: bold; white-space: nowrap; }
.g-msg-collapsed .mc-snippet { color: #999; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.g-msg-collapsed .mc-date { color: #888; font-size: 11px; white-space: nowrap; }

.g-quote-toggle { font-size: 11px; color: #888; cursor: pointer; }
.g-quote-toggle:hover { color: #0000cc; text-decoration: underline; }

.g-quoted {
  display: none;
  margin-top: 8px;
  padding: 6px 12px;
  border-left: 2px solid #ccc;
  color: #666;
  font-size: 12px;
  background: #fafafa;
  white-space: pre-wrap;
}

.g-quoted.open { display: block; }

.compose-win {
  position: fixed;
  width: 560px;
  background: #d4d0c8;
  border: 1px solid;
  border-color: #fff #404040 #404040 #fff;
  box-shadow: inset 1px 1px 0 #ece9d8, inset -1px -1px 0 #808080, 5px 5px 14px rgba(0,0,0,0.5);
  z-index: 700;
  padding: 2px;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
}

.compose-body {
  background: #fff;
  border: 1px solid;
  border-color: #808080 #fff #fff #808080;
  margin-top: 2px;
  display: flex;
  flex-direction: column;
}

.cw-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e8e8e8;
  padding: 3px 8px;
  font-size: 12px;
}

.cw-row label { width: 62px; color: #666; font-size: 11px; flex: none; }

.cw-row input {
  flex: 1;
  border: none;
  outline: none;
  font-family: Arial, sans-serif;
  font-size: 12px;
  min-width: 0;
}

.cw-ccbcc { font-size: 11px; color: #0000cc; cursor: pointer; margin-left: 8px; white-space: nowrap; }

.cw-toolbar {
  display: flex;
  align-items: center;
  gap: 2px;
  background: #efede6;
  border-bottom: 1px solid #d5d2c8;
  padding: 3px 6px;
}

.cw-tbtn {
  width: 22px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  font-size: 12px;
  font-family: Arial, sans-serif;
  cursor: default;
  padding: 0;
}

.cw-tbtn:hover { border-color: #fff #808080 #808080 #fff; }
.cw-tbtn:active, .cw-tbtn.on { border-color: #808080 #fff #fff #808080; background: #e2ded4; }

.cw-tsep { width: 1px; height: 16px; background: #c5c2b8; margin: 0 3px; }

.cw-select { font-size: 11px; font-family: Arial, sans-serif; height: 19px; }

.cw-editor {
  min-height: 190px;
  max-height: 300px;
  overflow: auto;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.45;
  outline: none;
}

.cw-editor:focus { background: #fffef8; }

.cw-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.cw-send {
  background: #4d72d6;
  color: #fff;
  border: 1px solid #2f55b0;
  font-weight: bold;
  font-size: 12px;
  font-family: Arial, sans-serif;
  padding: 3px 18px;
  cursor: pointer;
}

.cw-send:active { background: #3a5fc4; }

.cw-note { margin-left: auto; font-size: 10px; color: #999; }

.g-set-head { font-size: 16px; font-weight: bold; padding: 2px 0 8px; }

.g-set-tabs { display: flex; border-bottom: 1px solid #c3d9ff; font-size: 12px; }

.g-set-tab {
  padding: 4px 14px;
  cursor: pointer;
  color: #0000cc;
  border: 1px solid transparent;
  border-bottom: none;
  margin-bottom: -1px;
}

.g-set-tab.active {
  font-weight: bold;
  color: #000;
  border-color: #c3d9ff;
  background: #e8eefa;
  cursor: default;
}

.g-set-body { padding: 12px 4px; font-size: 12px; }

.g-set-row { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid #f0f0f0; align-items: baseline; }
.g-set-row .set-label { width: 150px; flex: none; color: #333; }

.g-set-labels { width: 100%; border-collapse: collapse; font-size: 12px; }
.g-set-labels td { padding: 4px 8px 4px 0; border-bottom: 1px solid #f0f0f0; }

.g-color-dot { display: inline-block; width: 12px; height: 12px; border: 1px solid rgba(0,0,0,0.3); vertical-align: middle; }

.g-color-pick { display: inline-flex; gap: 3px; vertical-align: middle; }
.g-color-pick .g-color-dot { cursor: pointer; }
.g-color-pick .g-color-dot.sel { outline: 2px solid #0a246a; }

.g-page-head { font-size: 16px; font-weight: bold; padding: 2px 0 10px; }

.g-invite-box {
  background: #f5f8ff;
  border: 1px solid #c3d9ff;
  padding: 12px 14px;
  max-width: 480px;
  font-size: 12px;
  line-height: 1.5;
}

.g-invite-box .inv-row { margin: 10px 0; }
.g-invite-box .inv-row label { display: block; color: #555; margin-bottom: 3px; }

.g-invite-box input, .g-invite-box textarea {
  width: 100%;
  border: 1px solid #7b9ebd;
  font-family: Arial, sans-serif;
  font-size: 12px;
  padding: 2px 4px;
}

.g-invite-box textarea { height: 64px; resize: vertical; }

.g-invite-ok {
  background: #e6f4e6;
  border: 1px solid #a3d1a3;
  padding: 10px 14px;
  font-size: 12px;
  max-width: 480px;
  margin-bottom: 12px;
}

.g-contacts { width: 100%; border-collapse: collapse; font-size: 12px; max-width: 560px; }
.g-contacts th { text-align: left; font-size: 11px; color: #666; border-bottom: 1px solid #c3d9ff; padding: 3px 10px 3px 0; }
.g-contacts td { padding: 4px 10px 4px 0; border-bottom: 1px solid #f0f0f0; }

.g-help h3 { font-size: 13px; margin: 14px 0 4px; }
.g-help .faq-q { color: #0000cc; cursor: pointer; text-decoration: underline; font-size: 12px; padding: 3px 0; }
.g-help .faq-a { display: none; font-size: 12px; color: #333; padding: 2px 0 8px 14px; line-height: 1.5; }
.g-help .faq-a.open { display: block; }

.g-adv-form { max-width: 520px; font-size: 12px; }
.g-adv-form .adv-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.g-adv-form .adv-row label { width: 130px; color: #555; text-align: right; flex: none; }
.g-adv-form input[type=text] { flex: 1; border: 1px solid #7b9ebd; padding: 2px 4px; font-size: 12px; font-family: Arial; }

.g-toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffcc;
  border: 1px solid #d6cf7a;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
  padding: 6px 14px;
  font-size: 12px;
  font-family: Arial, sans-serif;
  z-index: 800;
}
